Fork me on GitHub
#reading-clojure
<
2015-06-18
>
xevious08:06:56

awesome, let's go 😃

stephen10:06:43

Well first takeaway from page 5 : "Almost everything defined in a Clojure program can be redefined, even while the program is running: functions, multimethods, types, type hierarchies, and even Java method implementations."

stephen10:06:05

How is it possible to redefine a Java method implementation?

allouis10:06:07

I'm not 100% sure, but you could override the way in which clojure calls java code, and modify it at that point?

allouis10:06:18

Disclamer: pure speculation

dmich11:06:38

Does it mean you can provide your own version in clojure of some java implementation? Say override a string method?

stephen18:06:00

That is more overriding, which is different from redefining. Especially with Javas love of Factories - to redefine this method in Clojure would mean reimplementing all the surrounding code to make sure you create your new class..