lua-users home
lua-l archive

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


> I don't want to drag up the "standard library" topic, but that context makes
> sense to me. Sort of like how you always include headers that you need.
>
> Perhaps something nice to come along with the pruning? For example, moving
> the math functions into a library and adding some additional ones to that,
> for an even more complete set. This way you could remove more from Lua.
>
> I never use anything in math beyond min and max (and tonumber, not part of
> math...). From my perspective, I wouldn't miss it, but I don't feel any pain
> from them existing, either.

I can buy this. In which case I strongly suggest removing.rand and
randomseed too as they are actually harmful. At the risk of
approaching the slippery slope, why do we have atan2, ldexp, fmod,
frexp? Why not remove sqrt too since we have x^0.5?