Browsing articles from "February, 2010"

Why should I care about functions as first-class citizens?

Feb 5, 2010   //   by Noah Heldman   //   Blog  //  No Comments

The term “first-class citizen” as it applies to a feature of a programming language has always sounded weird to me. Besides anthropomorphizing code, it’s vaguely insulting, as if other language features might be considered “illegal immigrants”. On top of that, I’ve been using functions as first-class citizens in JavaScript for a long time now, but never appreciated why being first class was so special.

Well, I found a situation that changed my mind.
Read more >>