[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: I miss table.foreach
- From: Ousmane Roland Yonaba <roland.yonaba@...>
- Date: Wed, 4 Sep 2013 22:25:26 +0000
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