Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified syntax for common case of (copy ...) ? #1244

Closed
nojb opened this issue Sep 9, 2018 · 5 comments
Closed

Simplified syntax for common case of (copy ...) ? #1244

nojb opened this issue Sep 9, 2018 · 5 comments

Comments

@nojb
Copy link
Collaborator

nojb commented Sep 9, 2018

The common case of (copy ...) is copying a file from another directory to the current one with the same name.

What do you think of interpreting (copy src) as (copy src (basename src)) ?

(same for (copy# ...))

@rgrinberg
Copy link
Member

I think that's how copy_files already works so it makes sense.

@ghost
Copy link

ghost commented Sep 10, 2018

Agreed

@rgrinberg
Copy link
Member

This is easy enough to do so if anyone's curious about implementing this, we can give some guidance.

@nojb
Copy link
Collaborator Author

nojb commented Sep 30, 2018

I took a quick look at doing this; the only "tricky" point is inferring the target of such an abbreviated action, which requires making the type of paths less abstract than they are now which altogether seemed to me to result in uglier code.

In any case, #1323 addressed this issue as well for me, so as far as I am concerned, we could close this one.

@nojb
Copy link
Collaborator Author

nojb commented Nov 6, 2022

Not really important.

@nojb nojb closed this as completed Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants