Optional and variadic function arguments #16
Labels
idea
Proposals that have not been committed to yet
language feature
Requires changes to the language's grammar or its semantics
Currently user defined functions can only specify a fixed number of parameters:
We should at least support optional function parameters and possibly also variadic functions.
Example syntax for optional parameters:
"?" syntax like in TypeScript (e.g.
pretty?
) is not a good idea here, i think.The only fitting default value would be
null
(i do not want an undefined construct exposed to the language).The text was updated successfully, but these errors were encountered: