[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.2 and continue
- From: Alexander Gladysh <agladysh@...>
- Date: Mon, 1 Feb 2010 02:47:12 +0300
On Mon, Feb 1, 2010 at 02:39, Leo Razoumov <slonik.az@gmail.com> wrote:
> On 2010-01-31, Alexander Gladysh <agladysh@gmail.com> wrote:
>> On Mon, Feb 1, 2010 at 02:15, GrayFace <sergroj@mail.ru> wrote:
>> > - I don't know anyone who doesn't use 'continue', at least from time to
>> > time.
>> Me? I'm happy without it. As well as without repeat...until. But if it
>> would be in a core language it would not ruin my day.
> I can easily emulate 'repeat...until' with 'while', 'if' and 'break'.
> On the other hand, I am not aware of any decent way to emulate
> 'continue' in Lua.
> As far as my programming needs are concerned, I would welcome trading
> repeat...until for 'continue'.
I'd trade them both (along with current versions of bitlib, ipairs and
table.pack) for table append operator.
But that is not the point. Luckily, feature trading is not the main
driving force behind Lua design as well. :-)
Alexander.
- References:
- Lua 5.2 and continue, Joshua Jensen
- Re: Lua 5.2 and continue, Martin Poelstra
- Re: Lua 5.2 and continue, Fernando P. García
- Re: Lua 5.2 and continue, Olivier Hamel
- Re: Lua 5.2 and continue, Alexander Gladysh
- Re: Lua 5.2 and continue, Martin Poelstra
- Re: Lua 5.2 and continue, Alexander Gladysh
- Re: Lua 5.2 and continue, GrayFace
- Re: Lua 5.2 and continue, Alexander Gladysh
- Re: Lua 5.2 and continue, Leo Razoumov