Change the callable behavior: "extra arguments are thrown away; extra parameters get null" (like lua).
Moreover, parameters can have default value, even if the default value is an expression.
Example:
def foo
return "hello"
end
def test(a = 10, b = a * 2, c = foo())
print(c, a, b)
end
test()
test(0)
test(5)
test(5, 100)
test(5, null, "hi")
Change the callable behavior: "extra arguments are thrown away; extra parameters get null" (like lua). Moreover, parameters can have default value, even if the default value is an expression.
Example:
Output: