May 21, 2015
3:15 p.m.
On 21 May 2015 at 16:22, Max Leske <maxleske@gmail.com> wrote:
About the spaceship operator (<=>), is this something we'd like to have around? (I like it). http://en.wikipedia.org/wiki/Three-way_comparison
How would you make this âobject orientedâ? Have three singleton objects âLessâ, âGreaterâ, âEqualâ (similar to âTrueâ, "Falseâ), and on those object methods âifLess:â, âifEqual:â, âifGreater:â?
In http://mc.lukas-renggli.ch/container/ Lukas defined a hierarchy of comparator classes which answer messages like equals: X to: Y less: X than: Y maximum: anIterable etc. -- Damien Pollet type less, do more [ | ] http://people.untyped.org/damien.pollet