lua-users home
lua-l archive

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


	I think in Lua core and basic modules (math and so on), nothing out
of the actual line (course, improvements will happen). That why Lua is so
light, the same why I use it. Add-ons? Networking.





-----Mensagem original-----
De: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] Em nome de Patrick Donnelly
Enviada em: sexta-feira, 17 de agosto de 2007 02:07
Para: Lua list
Assunto: Features you would like to see

I'm curious what features people would like to see added to Lua.
Generally I'm content with the way things are. But there are some
things...

I'd like to see some sort of "default" value for function arguments
added. Something along the lines of:

function foo(a or 5)
  ...
end;

I wouldn't be very afraid of problems from passing nil or false to
such a function, as you wouldn't have a default value if you might
expect that as an argument. Yes I realize you can just have: function
foo(a or 5) a = a or 5; ... end;. Syntactic sugar maybe?

I'd like to see some sort of table.hole value for table arrays. I know
this has been talked about a lot.

What features would you like to see added?

-- 
-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant