lua-users home
lua-l archive

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


For another language, perhaps functions should allow a single parameter. If you need multiple parameters, pass a table. You can use positional parameters transparently, and can name them if convenient. This also gets rid of the vararg weirdness.

Though it's not as clean with returns, I believe.

Jorge


On 1/3/23 05:28, Francisco Olarte wrote:
On Wed, 1 Mar 2023 at 01:47, Steven Hall <shallnot@live.ca> wrote:
Hmm. f{} is not f() so no consistency is really needed. And besides there is a saying about a foolish consistency…
It is not needed, but it is nice to have it.