-
Notifications
You must be signed in to change notification settings - Fork 15
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
undeclared identifier 'f' if json
is imported
#28
Comments
Vindaar
added a commit
that referenced
this issue
Jan 29, 2020
The default `f{}` macro does not work if `json` is imported :/ See issue #28 for reference.
Vindaar
added a commit
that referenced
this issue
Jan 30, 2020
The default `f{}` macro does not work if `json` is imported :/ See issue #28 for reference.
While the related PR is merged, this issue will stay open for the time being, since the underlying issue is not fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to build a formula with the
f{}
macro and importingjson
at the same time, we'll encounter:Error: undeclared identifier: 'f'
For instance:
This is due to the
{}
procs exported injson
. This is confusing to me, since these are procs and our string / identifier input should never match their signature.I suppose this is because the implementation for the
f{}
macro is using the signature:where the first arg
x
is required to bef
andy
is the actual content of thennkCurly
.For now as a workaround I'll be adding a
fn
macro, which expects annnkCurly
argument:which can then be called via:
In this case the requirement for the curly brackets could of course be removed. I'm not sure which syntax I prefer. If anyone has ideas / an opinion, please let me know!
The text was updated successfully, but these errors were encountered: