[squeak-dev] Re: [Pharo-project] Smalltalk string API

Serge Stinckwich serge.stinckwich at gmail.com
Wed Feb 16 09:39:59 UTC 2011


On Wed, Feb 16, 2011 at 4:24 PM, Nicolas Cellier
<nicolas.cellier.aka.nice at gmail.com> wrote:
> I started referencing Smalltalk idioms at
> http://en.wikipedia.org/wiki/Comparison_of_programming_languages_(string_functions)
> I could have focused on ANSI but have chosen Squeak/Pharo. Feel free
> to correct me and to complete me.
>
> This is a very enlighting exercize, especially for pointing when API
> turns to be not that bright.
> During my perigrination, I notably noticed this:
>
> #compare: returns 1, 2, or 3 : this is both very object oriented, very
> intuitive and very standard and the rest of the world is stupid,
> unless...

Yes, really stupid, but maybe Squeak/Pharo should align here to the
rest of the world or
better, remove this method. We could use comparaison methods instead: <, >, ...

-- 
Serge Stinckwich
UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam
Every DSL ends up being Smalltalk
http://doesnotunderstand.org/



More information about the Squeak-dev mailing list