lua-users home
lua-l archive

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


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.