talideon.com

Never mind the quality, just feel the width!

September 9, 2004 at 1:53AM Martin Fowler on Closures

Martin Fowler’s talking about closures on his blog. I was rather disappointed that he didn’t bring up JavaScript when he was talking about it.

Why do I mention it, besides the fact that I like JS as a language? It’s because it’s given far less credit than it deserves: JavaScript more than any language is the one that has done the most to popularise and spread closures as a concept. As Eric Lippert noted, ”Waldemar Horwat--who was at one time the lead Javascript developer at AOL-Time-Warner-Netscape--once told me that he considered Javascript to be just another syntax for Common Lisp. I’m pretty sure he was being serious; Waldemar’s a hard core language guy and a heck of a square dancer to boot.”

Closures are what allow OOP in JS, and prototype-based OO like that of Dylan and JS is without a doubt far more powerful and flexible than class-based OO. Ah, the terrible lightness of being misunderstood.

Technorati Search Technorati Search Irish Bloggers

Comments

No comments.

Post a comment

All form information is optional, but it’s a good idea to fill in your name and email address if you want me to take your comment seriously.

Spammers, don’t bother posting crap down here. The site is set up so that legitimate search engines (Google, for instance) won’t index pages with comments on them. Posting crud here only means you’re wasting my time and patience. Shoo!

Real names, please. Please include!
Won’t be displayed. Please include!
Displayed, if present.