[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Features you would like to see
- From: "Patrick Donnelly" <batrick.donnelly@...>
- Date: Thu, 16 Aug 2007 23:06:32 -0600
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
- Follow-Ups:
- Re: Features you would like to see, David Manura
- Re: Features you would like to see, Rob Kendrick
- Re: Features you would like to see, Stephen Kellett
- Re: Features you would like to see, Thomas Lauer
- Re: Features you would like to see, Steve Heller
- Re: Features you would like to see, David Given
- Re: Features you would like to see, David Dunham
- RES: Features you would like to see, Rafael - SosCpdTerra
- Re: Features you would like to see, Anders Bergh
- Re: Features you would like to see, Dmitriy Iassenev