lua-users home
lua-l archive

[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