[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Thought experiment: what would you remove from Lua
- From: Sean Conner <sean@...>
- Date: Wed, 1 Aug 2018 11:48:34 -0400
It was thus said that the Great John Hind once stated:
> Definitely 'ipairs' and the metamethod on 'pairs'. The former is usually
> better done using numeric 'for' and can be trivially implemented in Lua
> if wanted. The latter can be done by replacing 'pairs' or by writing
> another iterator with a name reflecting what it does.
And there goes iterating over userdata ...
> Generally I'd remove everything from the standard libraries that does
> not justify implementation in 'C' either because it cannot be done in
> Lua or because serious performance gains can be had. Then I'd have
> standard Lua implementations for the rest.
Okay, do you have any suggestions then? Because I can't think of much in
the standard libraries that can be removed ...
-spc