lua-users home
lua-l archive

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


On Fri, Aug 1, 2014 at 2:10 PM, Tim Hill <drtimhill@gmail.com> wrote:

> However, I’m not too sure of the use cases here. Mostly, table.clear(x) can be replaced with x = {}. The only places this will not work is if the actually table is referenced from many locations (say, upvalues), but I’m not sure that these are particularly good designs anyway. Why create an API to encourage use of anti-patterns?

I think that is awfully presumptuous...