[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RES: Features you would like to see
- From: "Rafael - SosCpdTerra" <soscpd@...>
- Date: Fri, 17 Aug 2007 13:39:31 -0300
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.
[mailto:firstname.lastname@example.org] 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
I'd like to see some sort of "default" value for function arguments
added. Something along the lines of:
function foo(a or 5)
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?
"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."