Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Clojure on Heroku

Name: Anonymous 2011-07-06 10:40

http://blog.heroku.com/archives/2011/7/5/clojure_on_heroku/

Clojure gains more and more support each day. Are you ready to abandon your obsolete Common Lisips and Schemes in favor of a more modern, agile solution?

Name: Anonymous 2011-07-06 13:08

>>3

0]=> clj
Clojure 1.2.1
user=> (remove even? [2 3 4 5])
(3 5)
user=> (binding [filter (fn [& _] "this kind of broken")] (remove even? [2 3 4 5]))
"this kind of broken"
user=>

Name: Anonymous 2011-07-06 13:15

>>4

;; Referential transparency is what makes functional code ``functional''.
user=> (defn f [x] (first '(1 2 3 4))) ;; this function is referentially transparent, it will discard its argument and return 1.
#'user/f
user=> (f 3)
1
;; I lied, it's not referentially transparent, Clojure, a functional programming language, cannot have referentially transparent functions!
user=> (binding [first rest] (f 3))
(2 3 4)
;; And we also know how well dynamic scope goes with concurrency. A functional programming language with strong support of concurrency indeed!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List