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

if-else syntax #427

Closed
hoisie opened this issue Dec 15, 2009 · 2 comments
Closed

if-else syntax #427

hoisie opened this issue Dec 15, 2009 · 2 comments

Comments

@hoisie
Copy link
Contributor

hoisie commented Dec 15, 2009

In this small example below, both snippets used to compile. Recently, 
however, only the 2nd snippet compiles:

http://pastie.org/743667

What is the expected output? What do you see instead?
I expect both to compile. 

What is your $GOOS?  $GOARCH?
linux/386

Which revision are you using?  (hg identify)
a33ae1785d42+ (+=�=<) tip

Please provide any additional information below.
Something must have changed recently
@hoisie
Copy link
Contributor Author

hoisie commented Dec 15, 2009

Comment 1:

Apparently this is the result of the new parser changes:
http://groups.google.com/group/golang-nuts/browse_thread/thread/9eb0c7c1f20db921
While gofmt might fix the code, I think it's dangerous to enforce bracket styles upon 
the programmer.

@rsc
Copy link
Contributor

rsc commented Dec 15, 2009

Comment 2:

Status changed to Duplicate.

Merged into issue #416.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants