3 points•pushpankar•2 days ago•3 comments•

3 comments

dapperdrake2 days ago
Clojure really seems like a good way to learn lisp. Broke homoiconicity just enough.
brudgersabout 5 hours ago
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.

pushpankar1 day ago
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.

Read the full thread on Hacker News →

Related stories