Clojure

Enhance = and == docs

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:

Description

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)

Activity

Hide
Assembla Importer added a comment -

laurentpetit said: [file:bH0XMCFjur3PLMeJe5aVNr]

Show
Assembla Importer added a comment - laurentpetit said: [file:bH0XMCFjur3PLMeJe5aVNr]
Hide
Assembla Importer added a comment -

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.

Show
Assembla Importer added a comment - 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.
Hide
Assembla Importer added a comment -

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

Show
Assembla Importer added a comment - richhickey said: Updating tickets (#94, #96, #104, #119, #163)
Hide
Assembla Importer added a comment -

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

?

Show
Assembla Importer added a comment - 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 ?
Hide
Assembla Importer added a comment -

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

Show
Assembla Importer added a comment - richhickey said: I've fixed the code so == on non-numbers throws

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: