logoalt Hacker News

dapperdrake • last Sunday at 4:50 AM • 4 replies • view on HN

Clojure really seems like a good way to learn lisp. Broke homoiconicity just enough.


Replies

brudgers • yesterday at 6:40 PM

I haven't played with Clojure for a long time, so take that as a caveat.

My experience was that Clojure errors were often described in terms of the underlying Java Code and because I did not know much Java error messages were often inscrutable.

Which is not a criticism of Clojure because Clojure was designed to improve JVM programming experience and was implemented as a Java library (and pitched to managers as "it's just a Java library").

Again all that may be irrelevant today. But for what it's worth, Emacs lisp might be the best way to learn lisp because Emacs is more or less a virtual lisp machine if you squint hard enough.

➕ show 4 replies
pjmlp • today at 10:26 AM

For me, having learnt Lisp in the old days, Clojure's advantage is how it embraces its host instead of having an antagonist attitude like other guest languages happen to be like.

➕ show 1 reply
pushpankar • last Sunday at 6:01 AM

Yeah, clojure is well thought out language from developer experience perspective. It makes things which will bite you down the line not default like mutation but uses mutation for things like vars when cost outweighs benefit(in this case, aids in interactive development). I had read somewhere that clojure's namespace are great but didn't fully comprehend it. But now I do. It treats namespace as values which comes handy in testing, mocking, and introspection, all of which is big deal in maintaining project over the long run.

Clojure does the right thing most of the time but chooses to do something dirty for practicality. Top one being macros. I think using fully qualified namespaces during macro expansion gives you most of the benefit of hygiene while being easy to comprehend.

The only problem it has is its slow startup for desktop apps.

lgas • today at 11:27 AM

How does Clojure break homoiconicity?

➕ show 1 reply