Live data from Hacker News

Clojure Protocol Namespaces

matthewboston.com

1–3 of 3 posts

Re: Clojure Protocol Namespaces

#2
"Notice the use of dash in the :require but the use of underscore in the :import. This is because the :import is a Java import used for Java classes, and we must refer to our SchoolBus record as a Java class."

Just like how monads are burritos, apparently Clojure is a coffee cup with a hole in it - it's leaked Java all over the place. ;)

Re: Clojure Protocol Namespaces

#3
post #2

"Notice the use of dash in the :require but the use of underscore in the :import. This is because the :import is a Java import used for Java classes, and we must refer to our SchoolBus record as a Java class." Just like how monads are burritos, apparently Clojure is a coffee cup with a hole in it - it's leaked Java all over the place. ;)

There is some leaky Java, and it can be painful at times.