[Pharo-users] Why is split: implemented in the separator rather than the string?

Andy Burnett andy.burnett at knowinnovation.com
Thu May 19 14:48:31 EDT 2016

I keep getting this wrong, which makes me wonder why we send split: to the
separator rather than the thing to be split. Is there a benefit to doing

$- split: '1969-07-20'

rather than

'1969-07-20' split: $-  (which somehow seems more natural to me).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160519/c9fab003/attachment.html>

More information about the Pharo-users mailing list