Sane programming languages do not have this property.
Reitter: Answering the question: "How do I develop an app for GNOME?"
Posted Feb 6, 2013 15:53 UTC (Wed) by mpr22 (subscriber, #60784)
"a <= b" and "b <= a" being simultaneously true is fine because of the '=' part; I presume you mean that "a < b" and "b < a" being simultaneously true is indicative of a problem (which it is).
On the other hand, "a <= b" and "b <= a" being simultaneously false is sometimes compulsory (IEC 60559 floating point requires that all comparisons involving NaNs, including comparing a NaN to itself, return false.)
Posted Feb 6, 2013 19:05 UTC (Wed) by JoeBuck (guest, #2330)
Posted Feb 6, 2013 19:13 UTC (Wed) by drag (subscriber, #31333)
Especially the parts about using great-than and less-than to compare strings. Trying to program this way seems broken no matter what the language.
Posted Feb 7, 2013 9:25 UTC (Thu) by micka (subscriber, #38720)
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds