lua-users home
lua-l archive

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


You still have the choice between making your code readable or not.
- For the ones that want to make their code readable: allowing homonymous labels doesn't prevent them to make it readable. - For the ones that don't want to make their code readable: preventing homonymous labels doesn't prevent them to make their code unreadable. So I don't think it's a good think to limit the possibilities of the language just to limit the possibilities of some users to make weird codes.
For me, this return is a good thing.

-----Message d'origine----- From: Tomas Guisasola Gorham
Sent: Tuesday, June 28, 2011 3:30 PM
To: Lua mailing list
Subject: Re: [ANN] Lua 5.2.0 (beta-rc3) now available

Hi Roberto

On Tue, 28 Jun 2011, Roberto Ierusalimschy wrote:
- restrictions on labels is back to one-use-per-block. It is useful to
be able to isolate a piece of code (e.g., a state machine) inside a
pair do-end and be sure that its labels do not interfere with external
labels. For those that think that homonymous labels are confusing (with
good reason), simply do not use homonymous labels. It is easy to avoid
and easy to spot.
 I think the problem is not with our own code, but with others'.
Tomás