[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A major problem with the Lua ecosystem
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 1 Feb 2018 13:10:04 +0200
2018-02-01 11:42 GMT+02:00 Pierre Chapuis <catwell@archlinux.us>:
> On Thu, Feb 1, 2018, at 09:22, Dirk Laurie wrote:
>
>> For this idea to work with "lua -l" , we also need the patch
>> to preload libraries with customized global names
>> http://lua-users.org/wiki/LuaPowerPatches
>> so that
>>
>> lua -l paths=torch.paths
>>
>> is possible.
>
> Is there a major advantage compared to this, which works today?
>
> lua -e "paths=require'torch.paths'"
No more major than being able to write "obj:method(...)"
instead of "obj.method(obj,...)", "function foo(...)" instead of
"foo = function(...)", "tbl.key" instead of "tbl['key']" etc.