[Arrow function syntax] Move Arrow to head to fix ArrowFormalParameters issues

Allen Wirfs-Brock allen at wirfs-brock.com
Wed Jun 1 09:15:40 PDT 2011


one thing that stands out in your proposal is that there doesn't appear to be any way to write a recursive arrow function.

Here is one way it might be done:

higher(->: fact (n) n<=1?1:n*fact(n-1));

or possibly 

higher(->@ fact (n) n<=1?1:n*fact(n-1));

(in either case the 3 character arrow sequence would be one token)



More information about the es-discuss mailing list