simple shorter function syntax

Kevin Curtis kevinc1846 at
Mon Jul 26 10:00:29 PDT 2010

Re backslash and the issue of creating an escaping hazard when JS code
is included in a quoted string.

How so - is  there a problem with eval'ing:
eval("[0, 1, 2, 3].map(\(x) {x * x})");

(The backslash is sweet on both us and euro keyboards - no shift
needed as with # or @. yeah trivial...).


More information about the es-discuss mailing list