Welcome! Please see the About page for a little more info on how this works.

0 votes
in Docs by

Enhance = and == docs as far as numbers handling is concerned (make them self referenced, make clear what == offers beyond = -except that it will only work for numbers)

7 Answers

0 votes
by

Comment made by: importer

laurentpetit said: Richn, by "will fail on non-numbers", do you mean "should throw an exception" (and thus the patch must change the code), or just as it works today :

(== :a :a)
false

?

0 votes
by

Comment made by: importer

laurentpetit said: (link: [file:bH0XMCFjur3PLMeJe5aVNr)]

0 votes
by

Comment made by: importer

richhickey said: Updating tickets (#94, #96, #104, #119, #163)

0 votes
by

Comment made by: importer

richhickey said: I've fixed the code so == on non-numbers throws

0 votes
by
0 votes
by

Comment made by: importer

richhickey said: I don't want to recommend, in = doc, that people should prefer == for any case. People should always prefer =. If there is a perf, difference we can make that go away. Then the only difference with == is that it will fail on non-numbers, and that should be the only reason to choose it.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-163 (reported by alex+import)
...