lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
>
> 1) Following Diego's suggestion, require "a.b" would first require "a".

IMHO that would be wrong.  That assumes the "a" is the core of "a.b".
Shouldn't it be that "a" is the complete package and "a.b" a subset?
How is "a" supposed to require anything else in "a", i.e. "a.c"?
You instantly get cyclic references - IMHO a bad idea.

If you really want some automatism, you could load "a.common" or "a.core"
or something like that on a require"a.b".  But is it really necessary?
"a.b" could do that by itself ...

Just my 2 cent, ET.