lua-users home
lua-l archive

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


2009/12/5 Peter Sommerfeld <lua@rubrica.at>:
> Of course, this would require to implement one more policy
> into Lua, something like
> domain(GSL)

May be it could be a solution to enable "syntax options" in Lua by
using some directives at the beginning.

I believe Perl is doing something similar when you write:

use strict;
use warnings;

No real modules are imported but the language is slightly modified and
some constructs are not accepted.

More generally I can agree the the short function syntax may be
undesirable when Lua is used mainly as a procedural language. The
problem is that Lua can be adapted to same domain specific application
that naturally brings to different styles of programming (is this the
multi paradigm stuff?) . In this case it would be nice to dispose of
some options.

Francesco