|
|
|
|
|
by pushpankar
4 hours 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. |
|