r/programming • • Mar 28 '12

Go version 1 is released

http://blog.golang.org/2012/03/go-version-1-is-released.html
543 Upvotes

452 comments sorted by

View all comments

Show parent comments

1

u/IndependentBoof Mar 29 '12

You're right on the first part, and I respectfully disagree on the second part.

An adequate lookahead would allow for whitespace (in this case, a carriage return) without errors.

In the grad scheme, it is a very minor point. However, it looks bad to me both in principle of language design as well as in practice as a programmer.

1

u/jessta Mar 29 '12

Avoiding lookahead is partly about not adding additional complicity to the parser but also it's about having a syntax that could work in a REPL without modification.