rascal icon indicating copy to clipboard operation
rascal copied to clipboard

refactor: revisit the function declarations

Open cristianoliveira opened this issue 9 years ago • 1 comments

I am thinking that would be great if the language could express the function declarations in a more math way like:

sum = fn(x, y) { x + y };
return sum(1, 4)

or even:

fn sum(x, y) = { x + y };

return sum(1, 4) 

Just thinking

cristianoliveira avatar Sep 20 '16 18:09 cristianoliveira

First part done in 9529402: let foo = fn [x] { x + 1 }

cristianoliveira avatar Dec 28 '16 23:12 cristianoliveira