Fork me on GitHub
#clojure-dev
<
2018-08-20
>
andy.fingerhut22:08:00

Low priority question: Does anyone know why class Obj exists in Clojure's Java code?

andy.fingerhut22:08:22

I don't see anything that extends it or is created as an instance of it.

andy.fingerhut22:08:05

Hmm. It was added very early in Clojure's implementation, and almost never modified afterwards.

gfredericks22:08:01

I'd put up to ten dollars of my money on "dead code"

andy.fingerhut23:08:37

I only thought of the question while trying to track down all code that implements the IObj interface.

andy.fingerhut23:08:18

I wouldn't be surprised if some third party lib takes advantage of it. Hyrum's law and all.

gfredericks23:08:10

oh it's an abstract class

cfleming23:08:11

$10 please.

gfredericks23:08:20

that doesn't mean it's not dead code

cfleming23:08:51

I don’t have to, it’s your bet 🙂

gfredericks23:08:58

you do if you want to collect on it

gfredericks23:08:20

if our $20 has to stay in escrow forever, so be it

cfleming23:08:53

You got me with your legal trickery.

andy.fingerhut23:08:59

Ah, thanks. Carelessness on my part not to notice that. Also LazySeq

gfredericks23:08:51

I'm doubling down on ASeq and LazySeq being dead code

😂 4