lua-users home
lua-l archive

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I've written some code for lua 3.2 and lua 4.0 that does this and also
> what require will do. It searches the current directory first, and
> then the environment variable LUA_SCRIPT_PATH. It would be nice if
> this functionality were part of the standard behavior of lua.

I would like to cast a dissenting vote here.

Lua's primary goal is to make a powerful language available to those who
wish to embed one in their products.  With every platform-specific feature
you add, you bloat the language for no gain.  (Yes, environment variables
and paths are platform-specific.  Hell, so are directories for that
matter.;-)

One of the reasons that I really like Lua is that it has provided me with a
powerful embeddable language that is both small and fast.  I'd rather see
it kept that way.  Each idea I've seen mentioned here (for the most part)
has sounded wonderful, but hardly universally applicable.  The more
domain-specific material we add, the less useful Lua becomes overall.

Perhaps this is fruitful work for add-on libraries instead of language
changes?

- --
Michael T. Richter
"Be seeing you."

-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.3

iQA/AwUBOtNWHrTM3QkE7U/oEQL/bQCgmUCxXYJ1GUgdBXvLnkCO4JzOfJ0AoJJA
ahESJO8TR+Pf1qKa5RWevODw
=rH26
-----END PGP SIGNATURE-----