lua-users home
lua-l archive

Re: A major problem with the Lua ecosystem

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


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.

AltStyle によって変換されたページ (->オリジナル) /