[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.2 Keywords - In
- From: Tomas Guisasola Gorham <tomas@...>
- Date: Wed, 13 Jan 2010 10:12:01 -0200 (BRST)
On Wed, 13 Jan 2010, Miles Bader wrote:
Olivier Hamel <firstname.lastname@example.org> writes:
One of the things I like in Lua 5.1 is that very few of the
keywords are 'overloaded', the main exceptions being 'do' and 'end'.
I'd personally prefer if it didn't reuse 'in' which is already in use
by the 'for' loops.
The only problem with overloading is where it causes confusion, which
this new usage almost certainly won't (it's far removed from the other
usage -- nobody's going to look at one usage and think it's the other).
How can you be sure that "nobody's going to look at one usage and
think it's the other"? I agree with Olivier and think I would pay the
price of incompatibility to previous versions in order to have a more
appropriate reserved word for that.