We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@d
MWE
using DimensionalData myfun(a;b) = a * b z = Z(1:10) myfun.(z; b = 2) # works @d myfun.(z; b = 2) # errors
Gives ERROR: syntax: invalid syntax ; b = 2
ERROR: syntax: invalid syntax ; b = 2
Must be a bug, right? Or am I missing some reason why this is not allowed?
The text was updated successfully, but these errors were encountered:
Some kind of bad AST manipulation in the macro.
Guess there is no test for broadcasts with keywords
(Always assume I just messed it up, it's meant to be identical to base)
Sorry, something went wrong.
Thought it was probably you just messed up, just didn't want to be rude :)
Have a go at an AST fix if you feel adventurous... we just need to check for the keyword argument case somewhere.
Maybe we should have used MacroTools.jl to make it a bit easier but I usually just write them directly
No branches or pull requests
MWE
Gives
ERROR: syntax: invalid syntax ; b = 2
Must be a bug, right? Or am I missing some reason why this is not allowed?
The text was updated successfully, but these errors were encountered: