[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Thought experiment: what would you remove from Lua
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 1 Aug 2018 20:46:56 +0200
2018-08-01 19:57 GMT+02:00 Phil Leblanc <philanc@gmail.com>:
> On Tue, Jul 31, 2018 at 6:16 PM, Dibyendu Majumdar
> <mobile@majumdar.org.uk> wrote:
>> Are there features in Lua that could be removed to create a simpler language?
>
> Thought experiment level 1:
>
> -- Remove all special metamethods keys ("__add" and friends, including
> __len), excluding __index, __newindex and __gc
>
> Thought experiment level 2:
>
> -- Remove metatables
>
> i.e. less "object-oriented" things. Going more with plain functions,
> tables of functions and closures.
>
> Remember, this is NOT my wish list for a future Lua! :-) and I don't
> know how much simpler it would make the language implementation
In fact, it is a nostalgia list for a previous Lua: 4.0 had no
metatables (but it did have tag methods).