Can function arguments have default values?

#1

I.e. can I define a type system function
type WHATEVER {
foo : function(int x = 1) : int {@somejavascript@} js server
}

0 Likes

#2

Not yet, but it’s a great idea.

PLAT-2672 support default values for function arguments

3 Likes