Theoretically the language description limits it to 49; there's a maximum of 50 unique identifiers per file, and so if you had a single function there would be 1 identifier for the function name and a maximum of 49 for the function parameters.
Althoug...
The description of ML allows for functions to have no return statements. If I have a function like
function noreturn a b
print a b
print 1 noreturn(1, 2)
Obviously the inner print will print 3, but what about the outer print? Is it expecte...
Thanks, I understand that is an option, but I do want to know whether the language actually permits passing references to functions, because the syntax guide suggests it does, and the language description doesn't seem to forbid it.
If we pass a function into another function as an argument, is it expected that we can call it, or should it be treated as an un-declared variable, ie 0?
function add a b
return a b()
function two
return 2
print add 1 two
Should this produc...
Hey, I'm not Chris, but I believe that the description of function declarations found under the ml syntax guide allows this.
These two lines specifically are relevant
(...) means zero or more
function identifier ( identifier )