ha4
Showing posts with label
js
.
Show all posts
Showing posts with label
js
.
Show all posts
Wednesday, February 25, 2009
JavaScript 1.8 starts to look like R: expression closures
I was surprised to see this work in my Firefox:
(function(x) x+1)(1)
These are expression closures in
JavaScript 1.8
.
return
is gone, good riddance. Now if only we could write
fun
or
\
instead of
function
! The code would work in
R
, and my wish applies to that language as well.
Older Posts
Home
Subscribe to:
Posts (Atom)