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

Support concatenation between Globs and between Strings and Globs #48

Open
ryofurue opened this issue Jan 7, 2025 · 0 comments
Open

Comments

@ryofurue
Copy link

ryofurue commented Jan 7, 2025

It would be nice if string concatenation was implemented between Globs and between Strings and Globs.

Here is a pseudo Julia code to illustrate the point:

a = "hello"
g = a * glob"*.jpg"
for file in readdir(g) # matches "hello3.jpg" etc.
   # . . .

This code would work similarly to the following pseudo code

a = "hello"
g = glob"$(a)*.jpg"

as proposed in another request #27 .

Neither of these two ideas has the draw back of #47 , which requires escaping special characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant