lua-users home
lua-l archive

Re: S.W.O.T analysis

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


2011年10月19日 Patrick Mc(avery <patrick@spellingbeewinnars.org>:
> Okay let me rephrase, it this way, if we could trade weak tables and
> closures for a simple python/import mechanism then I think that would be
> better for the language.
No need to change the language. Formulate conventions for the
directory structure of the library containing the modules, write a
program (by all means call it `setup.lua`) that generates a module
loader for each subtree, and the difference will be as insignificant
as this:
python:
import library.module as mylib
lua:
mylib = (require "library").module
Dirk

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