News for hackers. Stuff that matters.
Re:Clojure vs. Scala by necrobrit on Tuesday December 24, 2013 @09:19AM (#6959408)
Does that 'or' method actually exist in a library somewhere or was it just for illustration?
Re:Clojure vs. Scala by brudgers on Tuesday December 24, 2013 @09:58AM (#6959556)
Just for illustration. But to the author of the article's point that programming languages structure our thinking, the idea that "or" must be either in the core language or part of some library illustrates the constraints imposed on expressing our ideas absent the ability to introduce new syntax via a lisp-style macro facility. In a sense, Clojure's light weight data structures can be seen as extending up into the language.