On 2013-02-19, at 18:41, "Esteban A. Maringolo" <emaringolo@gmail.com> wrote:
2013/2/19 Camillo Bruni <camillobruni@gmail.com>:
On 2013-02-19, at 17:15, James Foster <Smalltalk@JGFoster.net> wrote:
On Feb 19, 2013, at 7:32 AM, Camillo Bruni <camillobruni@gmail.com> wrote:
';;;;' splitOn: $; And your point is? I'm afraid I'm not able to interpret your message. What does an array of one or five empty strings mean? A terse reply like this suggests either an email error with an incomplete message or that you think that the information provided is so obvious that there is only one way to interpret your message. If you think that the current implementation is useful, I'd be interested in reading a realistic use case.
Apparently you like to write a lot, I don't.. so in verbose plain english:
Q: "Shouldn't there be some kind of alternative which would yield?" A: Yes there is, use #splitOn:
Cool down guys, we're all friends here :)
sorry, didn't mean to offend anybody ;)
But what's the rationale behind changing the semantics of a largely used selector in other dialects also?
e.g. in Dolphin and VisualAge/VAST ';;;;' subStrings: $; => ('' '' '' '')
(In VA the implementation dates from 1996!)
It is indeed strange behavior, but I think we inherited that from squeak. But it looks like the ANSI standard from which that method emerged is not very specific about it. And other Smalltalkses discussed the behavior as well: http://forum.world.st/New-Dolphin-Goodie-ANSI-substrings-td3362233.html So with both behaviors at hand everybody can be happy, or fight forever over the right definition :P