lua-users home
lua-l archive

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


Am 07.04.2014 19:18 schröbte Christopher Berardi:
On Apr 7, 2014 12:57 PM, "steve donovan" <steve.j.donovan@gmail.com> wrote:

On Mon, Apr 7, 2014 at 6:43 PM, Christopher Berardi
<cberardi32@gmail.com> wrote:

I'll also put myself with those who want a more robust and expressive
require function.

But precisely what does this mean?

For one example of expressiveness, and I know its been beaten to death
before, would be akin to Python's import statement:
     import module1
     import module2 as m2
     import module3, module4
     from module5 import func1, func2
     ...

That would increase Lua's grammar by about 25% [1][2] -- for a bit of syntax sugar.

Philipp


[1]: https://docs.python.org/3.4/reference/simple_stmts.html#the-import-statement (9 lines)
  [2]: http://www.lua.org/manual/5.2/manual.html#9 (40 lines)