Sjoerd Visscher's weblog

My ideas about new web technology that can change the future of the world wide web.

Last Update

10/25/2002; 8:16:00 PM

Weblog Search

Don't like the look of this site?

XML coffee mug
Click to see the XML version of this web page.

Updated with

Click here to visit the Radio UserLand website.

Saturday, February 23, 2002

OK, the Javascript version of Y needs apply too. Patrick explains.

I think it is fantastic that relatively new, yet widely popular, languages like Python, Ruby, and JavaScript have adopted such useful Lisp features as closures, apply, etc. (Now if only they'd adopt the syntax!) [Patrick Logan's Radio Weblog]

What I like about the Lisp syntax is how it shows the simple model of Lisp so clearly. But I think that syntactic shortcuts makes the code easier to read, although everyone seems to like different shortcuts. Everybody should have his own editor that let's you edit the code in your prefered syntax, but saves it in standard syntax. F.e. I prefer f(a,b) or a.f(b) over f a b and {|x| ...} over (lambda (x) ...). So the Y combinator should look like this in my editor:

define(Y, {|gen| {|f| f(f)}({|f| gen({|x| f(f).apply(x)})})})