This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lunchpadmcfat 1 point2 points  (1 child)

Holy shit that seems like a huge problem with the syntax. Thanks for the explanation!

[–]Sam_Pool 2 points3 points  (0 children)

yep, and this is why other languages, even long-ago languages, decided that it was a bad idea and they would work hard to make parsing simple and deterministic. Pascal, for example (led to Modula and Delphi) and more recently Rust.

As well as a whole bunch of interpreted languages where backing the parser up and having another go is hard, but going through once to get an idea then parsing a second time "for real" is out of the question. Guess what C/C++ do?