join

stephane ducasse stephane.ducasse at gmail.com
Mon Sep 18 16:42:58 UTC 2006


+ 1

Stef

On 18 sept. 06, at 17:38, Ramon Leon wrote:

>> Join is popular for people who use Perl, but it seems weird
>
> And Python, Ruby, JavaScript, CSharp, and Visual Basic.Net.  Split  
> and join
> are the common names in most languages that use them.
>
>> if there's a print involved in the method.  printStrings: can
>> be misread in several ways, e.g. does it return the print
>> strings?  Does it print the argument's elmeents, which are
>> expected to be strings?
>>
>> I lean towards makeString:, though I admit I have different
>> and warped experience that makes this one look familiar to
>> me.  That said,
>> makeString: does tell you the most important thing about the
>> method-- it flattens the receiver into a string.  It is vague
>> about how it does it, but in most use cases the reader can
>> guess (foo makeString: ', ').
>> -Lex
>
> They should be called #split: and #join:, no need to hide them  
> under other
> names when all newcomers are going to be looking for #split: and  
> #join:.
> Let's not be different, just to be different.
>
>




More information about the Squeak-dev mailing list