lua-users home
lua-l archive

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/06/11 22:05, Pierre-Yves Gérardy wrote:
> On Tue, Jun 14, 2011 at 22:49, Roberto Ierusalimschy
> <roberto@inf.puc-rio.br> wrote:
>> Then should you be able to jump into a block?
> 
> Oh please, no! As much as gotos within a block or to and enclosing
> block can sometimes improve the readability, jumps into a block would
> IMO always make the code flow more complex.

I'm quite happy with gotos the way they are --- the rules are simple,
the logic is clear, and there's enough safety to prevent me from
shooting my foot off while also giving me enough rope to hang myself.
Which is what goto is *for*, after all; it's the tool you use when all
else fails...

- -- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "I have a mind like a steel trap. It's rusty and full of dead mice."
│ --- Anonymous, on rasfc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFN99bXf9E0noFvlzgRAgA6AKCocEan88U49zdc3LrNjJQOmKX55QCcDagk
WdohYkEK/LsdFfN490/qz1s=
=mTVJ
-----END PGP SIGNATURE-----