When a String and a Symbol have the same contents, equality and less/greater than return false, while less/greater than or equal returns true. Since intuitively, less/greater than or equal imples that either one or the other of less/greater than and equal is true, this is inconsistent.
E.g.:
'abc' = #abc --returns false
'abc' < #abc --returns false
'abc' <= #abc --returns true
VisualWorks and VA Smalltalk also have this behavior; to avoid perturbing existing code, GemTalk does not intend to change the behavior.
Avoid comparisons that mix Strings and Symbols. If you must perform comparisons that mix instances of different classes and perform comparisons and include elements with identical contents, carefully consider the operator you use to ensure that the results are what you intend.
Mixing Strings and Symbols with identical contents in a SortedCollection with a default SortBlock, which uses <=, will not be ordered deterministically; the ordering will depend on the order elements are added.
Last updated: 11/13/14