Closed gwadej closed 9 years ago
In the section Unified Definition Syntax, you show two styles of function definition:
hypot = function(x,y) sqrt(x^2 + y^2);
and hypot(x,y) = sqrt(x^2 + y^2);
Why two? What is the purpose of the first one? The only thing I can think of is anonymous functions/lambdas. Is this the intent?
This is clarified in the "Functions" RFC. A reference to that section might be in order.
In the section Unified Definition Syntax, you show two styles of function definition:
and hypot(x,y) = sqrt(x^2 + y^2);
Why two? What is the purpose of the first one? The only thing I can think of is anonymous functions/lambdas. Is this the intent?