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...



Reply via email to