Login  Register

Re: Comparison for SequencableCollection

Posted by jtuchel on Aug 02, 2015; 12:46pm
URL: https://forum.world.st/Comparison-for-SequencableCollection-tp4840704p4840706.html

Am 02.08.15 um 14:11 schrieb webwarrior:
> I was surprised when discovered that in Pharo comparison is not defined for
> lists, arrays and similar datastructures.
>
> Because in almost every programming language (F#, Python, Javascript just to
> name few) you can compare lists, arrays, etc. By convention, the ordering is
> lexicographical, just like in strings.

BTW: This would be SortedCollection, not OrderedCollection or its
superclass.
Still I am not convinced that I really need an implementation of #< in
SequencableCollection. Too many ways to interpret what greater or equal
or lower could mean...