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

Support for outer i = ... #595

Closed
pochoi opened this issue Jul 25, 2018 · 2 comments
Closed

Support for outer i = ... #595

pochoi opened this issue Jul 25, 2018 · 2 comments

Comments

@pochoi
Copy link

pochoi commented Jul 25, 2018

I am wondering if a macro for the compatibility of new syntax for outer i = ... would be useful.

for outer i = ... is introduced in Julia 0.7 JuliaLang/julia#22314 in order to distinguish the different behaviours of for i = ... between 0.7 and older versions.

Julia in older versions gives error ERROR: syntax: invalid iteration specification for this new syntax.

@martinholters
Copy link
Member

I agree this would be nice to have, but the for outer ... fails at the parser level (on 0.6), so a macro never gets to see it. One could conceivably introduce a @for_outer macro so that

@for_outer i = ... begin
    ...
end

does the expected. But I'm not sure it's worth it.

@martinholters
Copy link
Member

Closing as outdated since we've dropped support for Julia prior to 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants