lua-users home
lua-l archive

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


>It could work, but doesn't because the parser has to handle the case without
>the semicolon too.
>Having optional semicolons was probably a mistake in the design of Lua. :-(
>--lhf

Semicolons do seem to make life easier.  Having them as an option is a
little confusing as well.  Would it be worth doing a dynamically
configurable compiler?  Something like $; would turn on required
semicolons.  Or DoString/DoFile could take a semicolon-required flag.  The
other option would be to have DoString and DoFile add semicolons, but there
would be that 1% case that wouldn't work.

What's the hardest and most common case to automatically add semicolons to.

Russ