Quote from: Snarky on Fri 02/12/2022 09:17:32Some way to support this would make the scripting language a lot more powerful and convenient: for example, you could write mathematical functions that could take either ints or floats as arguments (function overloading), create generic functions that could, for example, manipulate arrays of arbitrary types, etc.
Variadic functions, function overloading and generic functions are completely separate language features, that should not be mixed!!!
Variadic functions do not restrict the number of args, and are not typesafe (you cannot enforce an argument type in the prototype). Overloaded and generic functions restrict number of args and are typesafe (with generic function you can at least enforce that arguments and return values are of the same type, if necessary).