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

[TODO] explain where whitespace is needed #53

Open
moritz opened this issue Apr 7, 2011 · 2 comments
Open

[TODO] explain where whitespace is needed #53

moritz opened this issue Apr 7, 2011 · 2 comments
Labels

Comments

@moritz
Copy link
Contributor

moritz commented Apr 7, 2011

miso2217 complained on #perl6 that there's no good documentation about where whitespace is needed. For example we need to explain that (and why) these two things are illegal:

 if(1) {  } # function call
 if 1{ }    # parses { } as postcircumfix
@jeteve
Copy link
Contributor

jeteve commented Apr 7, 2011

I've been caught by this one :)

@miso2217
Copy link

miso2217 commented Apr 9, 2011

It was originally from a block like this:
if (1){
say 1;
}
else{
say 2;
}

What is a very classic "c/c++ background programmer" way of writing an if statement. This gives the following error: Missing block at line 9, near "else{\n sa".

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

No branches or pull requests

3 participants