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

String Interpolation Support #119

Open
mattBrzezinski opened this issue Oct 15, 2020 · 1 comment
Open

String Interpolation Support #119

mattBrzezinski opened this issue Oct 15, 2020 · 1 comment

Comments

@mattBrzezinski
Copy link

It would be nice if we could support string interpolation

foo = "foo"
bar = datadep"$foo"

ERROR: KeyError: key "\$foo" not found
Stacktrace:
 [1] getindex at ./dict.jl:467 [inlined]
 [2] resolve(::String, ::String, ::String) at /Users/mattbr/.julia/packages/DataDeps/gbyoa/src/resolution.jl:54
 [3] resolve(::String, ::String) at /Users/mattbr/.julia/packages/DataDeps/gbyoa/src/resolution.jl:73
 [4] top-level scope at REPL[10]:1
@oxinabox
Copy link
Owner

I would accept a PR that added String interpolation: that would be useful.
Technically could be breaing if someone was using $ in their datadep names, but i doubt anyone is since.

til then you can do @datadep_str foo to have this effect.

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