[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: gettable hook
- From: "Russell Y. Webb" <rw20@...>
- Date: Wed, 31 May 2000 08:41:16 -0700
>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