[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: new thought experiment: what would you add to Lua ?
- From: Frank Kastenholz <fkastenholz@...>
- Date: Sat, 15 Sep 2018 13:15:26 -0400
First, it seems to me that Lua is really complete - I can do anything/everything I want. So i don’t see anything as missing (in the sense of “I can not write a program to do X because Lua just doesn’t do Y”
That said, there are a lot of things that could be done as conveniences to the programmer, maybe making the code more concise, cleaner, easier to read, etc. several have been mentioned.
One that i would like is a more concise way to append to a list. Instead of “list[#list+1]=...” how about something like “list[++]=...”?
os.setenv, as a counterpart to os.getenv?
I like the idea that someone else posted about a preprocessor
I also like the idea of a switch statement (maybe taking bash’s notion of patterns in the cases :-)
But none really are critical (to me)
Thanks
Frank