lua-users home
lua-l archive

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

2013/11/17 Rena <>:

> As someone who strongly dislikes repetition, I can see it being nice to be
> able to write something like:
> local insert, concat from table
> but then I feel like I'd rather name them tinsert and tconcat to make it
> clearer where they came from, and then I'd have to specify the original
> names to extract from table, and then we're back to:
> local tinsert, tconcat = table.insert, table.concat
> which still repeats 'table', but I don't see a good way to avoid that
> without a severe loss of clarity.

local ENV=_ENV
-- define locals from table
-- define locals from string

... but maybe that counts as a severe loss of clarity.