Unofficial Hacker News companion — get notified on comment replies, and more.

Chez from a Clojurian perspective (opens external site)

101 points by pushpankar 3 days ago | get-aksh.com | 61 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (4)

  1. How does Clojure break homoiconicity?
    Replies (2)
    1. I don't think it does. When I've seen similar comments before it's boiled down to the syntax being more than just atoms, lists, and quoting, but using vectors and maps in the syntax doesn't mean macros can't work with them.
      Replies (1)
      1. Lists and trees really are the natural data structures for parsing programming languages. Like vectors are natural in Fortran for number crunching. Maps don’t really fit for either of these, because hash maps hide layout geometry on purpose.
    2. NIL and the empty list are distinct. The empty list and the empty map and the empty set and the empty vector are distinct.

      Square brackets from vectors and dropping one level of nesting in let bindings really helped me read them. But when I started implementing destructuring on conses by hand in SBCL I learned why CL does let binding lists the way it does.

      Turning an flet binding into a defun requires fewer keystrokes manually and fewer steps in a macro when going with CL versus Clojure.

      Clojure taught me what to watch out for in the first place.