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

When I reference Java from Clojure, I usually wind up with a thin layer of wrappers around the part of the library I need to make the main codebase feel more properly Lispy. It isn't perfect with the different mental models between the languages, but it helps.


Yeah, and I think wrapper functions are fine and normal.

The part that I do find annoying is when I have to break out macros to make my wrapper usable. When I was using the Java bindings for Apache Spark a few years ago, I felt like I was constantly reaching for macros to do some clever stuff, which is no fun.




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

Search: