Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Clojure does have more sugar than Scheme, but imho some of it improves readability; for example, using brackets for grouping instead of overloading lists like Scheme does can make code easier to scan, because when you see parens in Clojure there are fewer meanings to choose from (usually only function application or a list literal). Example:

Scheme

  (let ((x 2) (y 3))
    (let ((x 7) (z (+ x y)))
      (* z x)))
Clojure

  (let [x 2 y 3]
    (let [x 7 z (+ x y)]
      (* z x)))
I think the Clojure version is easier to read without a paren-matching editor, though Scheme's rigorous minimalism does have its charm.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: