reading-clojure

2015-06-18T08:54:56.000082Z

awesome, let's go 😃

stephen 2015-06-18T10:12:43.000083Z

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."

stephen 2015-06-18T10:13:05.000084Z

How is it possible to redefine a Java method implementation?

allouis 2015-06-18T10:25:07.000086Z

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

allouis 2015-06-18T10:25:18.000087Z

Disclamer: pure speculation

2015-06-18T11:45:38.000088Z

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

stephen 2015-06-18T18:58:00.000093Z

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..