On 2013-02-20, at 08:05, Camillo Bruni <camillobr...@gmail.com> wrote:
>> No, Squeak has (since 2005) had still another behaviour: >> >> ';;;;' subStrings: ';' >> '1;2;3' subStrings: ';' #('1' '2' '3') >> >> (Note the ';' rather than $;, because Squeak's version takes a String >> of separators.) > > so yes, exactly the same as in Pharo. > => we inherited it from Squeak! > => subStrings: only works with Characters Strings of course, #subStrings: works only with Strings > => #splitOn: does it with both and yields more predictable results! > > (';;;;' splitOn: $;) = (';;;;' splitOn: ';') = an OrderedCollection('' '' '' > '' '')