-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 keyword args in anonymous functions with optional positional args #26916
Labels
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
kind:bug
Indicates an unexpected problem or unintended behavior
Comments
For reference, anonymous functions created with the |
@mbaumann: Unfortunately, there still seems to be an issue when the first parameter has a default value:
|
Ah, I see now. Thanks for the correction. |
JeffBezanson
added a commit
that referenced
this issue
May 4, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
kind:bug
Indicates an unexpected problem or unintended behavior
The following behavior seems erroneous, or at least confusing to me:
These work:
f(x=1;y=2)=x+y
(x;y=2)->x+y
(x=1,y=2)->x+y
This errors:
(x=1;y=2)->x+y
ERROR: syntax: invalid assignment location "begin
x=1
y=2
end"
versioninfo()
Julia Version 0.6.2
Commit d386e40 (2017-12-13 18:08 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
The text was updated successfully, but these errors were encountered: