lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


08.06.2019, 07:00, "Philippe Verdy" <verdy_p@wanadoo.fr>:
> Note also that Javascript has similar issues, but it does not require ";"
> only because it differenciates whitespaces
> (those that include a newline not part of a comment
> from other whitespaces); you cannot safely remove all newlines
> in Javascript and merge all whitespaces to a single space,
> without adding a few ";" where needed.
> So Javascript's parser defines the newline token!

i do not like giving syntactical meaning
(mostly statement termination) to newlines since i prefer free
form syntaxes where the programmer can use the source code
formating they prefer.