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

@macroexpand error: missing comma or ) in argument list #27170

Closed
tk3369 opened this issue May 19, 2018 · 1 comment
Closed

@macroexpand error: missing comma or ) in argument list #27170

tk3369 opened this issue May 19, 2018 · 1 comment
Labels
parser Language parsing and surface syntax

Comments

@tk3369
Copy link
Contributor

tk3369 commented May 19, 2018

julia> @macroexpand(
                @distributed for i in 1:5
                  true
                end
              )
ERROR: syntax: missing comma or ) in argument list

julia> versioninfo()
Julia Version 0.7.0-DEV.5121
Commit 406615f (2018-05-17 09:51 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)
Environment:
  JULIA_NUM_THREADS = 4
@JeffBezanson
Copy link
Member

This is due to #18650 and its fix. We decided that it's more useful to pass generators as arguments inside parentheses than block-style for loops, so the parsing was changed to favor them.

@macroexpand @distributed for ... or @macroexpand begin ... end should work.

@JeffBezanson JeffBezanson added the parser Language parsing and surface syntax label May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Language parsing and surface syntax
Projects
None yet
Development

No branches or pull requests

2 participants