Add syntax for specifying default values for optional arguments.
Suggested:
string foo(string bar = "default")
{
return bar;
}
// typeof(foo) ==> function(string|void: string)
// typeof(bar) ==> string
// foo() ==> "default"
// foo(UNDEFINED) ==> "default"
// foo("foo") ==> "foo"
Edited by Henrik (Grubba) Grubbström