[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) goto syntax
- From: David Kastrup <dak@...>
- Date: Thu, 16 Jun 2011 18:05:41 +0200
Edgar Toernig <froese@gmx.de> writes:
>> Some real contenders:
>> [label syntax]
>
> I think, the current syntax is OK (as would be ::label::).
>
> What is more important to me, is the syntax of the goto statement.
>
> 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.
A common use case for goto is the implementation of state machines. It
would complicate the generation of them if you had to specify the
direction where the label is to be found.
--
David Kastrup
- 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