lua-users home
lua-l archive

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


2013/9/5 Ousmane Roland Yonaba <roland.yonaba@gmail.com>:
> Since Lua 5.1, table.foreach and table.foreach were deprecated[1].
> It is known (I am such a fan of Game Of Thrones... :)).
>
> I would just like to know why. Are there good reasons to this ?
> I bet there are, as looking at the evolution of Lua, nothing is seems
> to be done without some solid motives at the basis.
>
> But to me, this syntax was so much beautiful:
>
>     table.foreach({...}, print)
>
> It misses me under Lua 5.2.x.
> Well, I am not saying I want it back. Just looking for...reasons.
> Thanks reading.
>
> Regards,
> Roland Y.
>
> [1] http://www.lua.org/manual/5.1/manual.html#7.2
>

For me, I personally miss more something like table.find (which never
existed). A kind of function like that would be great :-), there's
also table.sort so table.find could be a great improvement.

Cheers,

-- 
Demelier David