You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This caused some confusion for me, an experienced programmer learning Go by the tutorial. Seems like hereabouts is a spectacular place to remind the reader that the Go compiler appends semicolons to lines ending in "}" or ")".
The text was updated successfully, but these errors were encountered:
crisman
added a commit
to crisman/golang_website
that referenced
this issue
May 13, 2023
Many users of the Go Tour trip over using else after a newline which
generates a syntax error that is hard to understand unless the reader is
primed to think about a newline before the else. "tour/flowcontrol/7"
("If and else") the slide that first talks about else seems the right place
to update.
Add statement about required location of else after if block, provide an
invalid else code example mirroring the slide's program, and provide links
to the language spec for details.
Fixesgolang/tour#1481Fixesgolang/tour#1427Fixesgolang/tour#1062Fixesgolang/tour#442
Context: https://go.dev/tour/flowcontrol/7
This caused some confusion for me, an experienced programmer learning Go by the tutorial. Seems like hereabouts is a spectacular place to remind the reader that the Go compiler appends semicolons to lines ending in "}" or ")".
The text was updated successfully, but these errors were encountered: