[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: gettable hook
- From: Jim Mathies <Jim@...>
- Date: Wed, 31 May 2000 15:18:04 -0400
No semicolons! IMHO. Please. They
are a waste of source space.
-----Original Message-----
From: Russell Y. Webb [mailto:rw20@cornell.edu]
Sent: Wednesday, May 31, 2000 8:48 AM
To: Multiple recipients of list
Subject: Re: gettable hook
>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