[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: new thought experiment: what would you add to Lua ?
- From: Sean Conner <sean@...>
- Date: Sat, 15 Sep 2018 17:22:01 -0400
It was thus said that the Great Frank Kastenholz once stated:
>
> os.setenv, as a counterpart to os.getenv?
setenv() is not a standard C function (it is in POSIX). Lua only uses
standard C functions, thus its ommission.
One oddly lacking function is localeconv(). We have os.setlocale() but
not os.localeconv().
> I also like the idea of a switch statement (maybe taking bash’s notion of
> patterns in the cases :-)
You could always use a table for this.
> But none really are critical (to me)
Same here.
-spc