Suppose we extend the syntax of function calling to allow not only round () parenthesis but also curly {} brackets. The curly brackets are for the varadic arguments.

Let fn1 be a function of arguments: fn1( a, b, c ) then fn1{1, 2, 3, 4, 5} will call the function as fn1(1, 2, {3,4,5}). This adds varadic functions to many familiar functions. This means you wouldn't need to declare the functions in a special way. Rather all functions could be varadic. Instead of max({i,j}) you could write max{i,j}.


Quick Links

User menu

Not signed in.

Misc Menu