[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 rc3 now available
- From: D Burgess <dburgess@...>
- Date: Sat, 11 Feb 2006 15:36:34 +1100
>
> I understand the motivation for deprecating them, but is there thought to
> what the replacement is for:
>
> table.foreach( t, print )
>
> It's a lot wordier to write:
>
> for k, v in pairs( t ) do print( k, v ) end
>
Or compared to the lua 4 version
foreach(t, print)
Methinks the changes have not advanced the intuitive nature of Lua,
and there is a case for foreach being part of the "Basic Functions".
David B.