.@propensive @extempore2 so Scala is not better than Java on this front.
-
-
-
@jb9i@propensive@extempore2 So would you propose to write equality for primitive types? - Show replies
New conversation -
-
-
@extempore2@propensive plus, double/float equality is specially tricky IIRCThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@extempore2@jb9i Yeah, it's impossible. Unfortunately we *must* make practical choices. That means IEEE, otherwise we compromise elsewhere.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@extempore2 The distinction between ordinary boxing and value classes made the subtle point clearer, though. Thanks.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@extempore2@jb9i I don't understand. What possible recourse is there for IEEE when same ≠ equal for all x and different = equal for some x?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@extempore2@jb9i I would dispute "considerably"... IEEE's unintuitive behaviour is a prerequisite for equality not working. -
@extempore2@jb9i It's a bit like blaming Set for not deduplicating equal elements with different hashcodes.
End of conversation
New conversation -
-
-
@extempore2@jb9i I'd be interested to know. I wrote a replacement for Double yesterday which "fixes" NaN and -0.0, but haven't benchmarked.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@extempore2@jb9i Maybe I am... I didn't think we were comparing `Double`s with anything but `Double`s (or maybe `double`s).Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.