[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) goto syntax
- From: Edgar Toernig <froese@...>
- Date: Thu, 16 Jun 2011 18:42:27 +0200
HyperHacker wrote:
> > Edgar Toernig <froese@gmx.de> writes:
> >
> >> In my experience, it helps reading and understanding code if the
> >> jump-statement gives a hint about the direction the jump takes,
> >> forward or backward.
>
> How about:
> goto a --redo
> goto b --skip
> ? :)
Sure, a caring experienced programmer may add such comments but I bet,
99% of goto statements wouldn't have such comments. If the syntax
forces the author to document his intend (without any burden as he's
thinking about skipping/redoing anyway), everyone wins.
Ciao, ET.
- References:
- [ANN] Lua 5.2.0 (beta-rc1) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Alexandre Erwin Ittner
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Frank Meier-Dörnberg
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, David Kastrup
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Frank Meier-Dörnberg
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Eduardo Ochs
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Frank Meier-Dörnberg
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, David Given
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.2.0 (beta-rc1) goto syntax, Edgar Toernig
- Re: [ANN] Lua 5.2.0 (beta-rc1) goto syntax, David Kastrup
- Re: [ANN] Lua 5.2.0 (beta-rc1) goto syntax, HyperHacker