lua-users home
lua-l archive

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


Hi,

Does it really have to know? Is it common for "a.b" not to need "a" and,
moreover, "a" be too heavy compared to "a.b"?

(As far as I know, Python always import the whole "a" when importing
"a.b", and people seem quite happy with Python...)

The problem is that if "a" doesn't know what is going on, it will have
to make "a.*" available. These can be much more expensive than "a"
itself. If "a" knew which of its submodules are being required, it could
be lazy and only load that one.

I don't care too much, but it would be nice if "a" was really in charge.

[]s,
Diego.