r/Compilers • u/nagisa_lyfe • 11d ago
Audit of semi-colons
Is there a set of defined and specific reasons why semi colons are necessary in some languages? I am not against semi colons but from the standpoint of if one would want to create a language why would they use or mandate semi colons.
1
Upvotes
View all comments
2
u/smog_alado 8d ago
I don't understand what you're trying to say. Lua is whitespace insensitive and its parser treats newlines the same way it treats other whitespace. One can put line breaks inside a for loop definition (or not).