catb0t / tart

Automatically exported from code.google.com/p/tart
0 stars 0 forks source link

Add shortcut syntax for closures #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The expression:

   x => x + 1

should be equivalent to:

fn x:int -> int { return x + 1; }

(except that the type of 'x' should be inferred from context.)

Original issue reported on code.google.com by viri...@gmail.com on 1 Mar 2011 at 11:08