Fork me on GitHub
#clojure-dev
<
2022-01-28
>
seancorfield06:01:53

That link doesn't seem to produce anything useful @jumar - what was it supposed to show?

jumar06:01:05

Hmm, weird - this usually works.

seancorfield06:01:34

I suspect that code predates Clojure 1.6?

seancorfield06:01:29

some? is defined to be not nil? but the latter was the only way to say that in Clojure 1.5 and earlier.

seancorfield06:01:10

Oh, it's new code. And you're wondering why it doesn't use some? @jumar?

seancorfield06:01:37

Probably because (not (nil? x)) had been idiomatic for years and the person writing the code just happened to write it that way? I doubt there's any significance to it. It could be some? yes. Which would compile to the exact same code.

seancorfield06:01:26

So I guess the answer is "No, no reason, and the code is identical so it doesn't matter"...

Alex Miller (Clojure team)08:01:42

I wrote it, and there's no good reason

1
👍 2