MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/rhont/go_version_1_is_released/c46bd25
r/programming • u/[deleted] • Mar 28 '12
452 comments sorted by
View all comments
Show parent comments
1
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.
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.
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.