[Packages] Split-Join in development universe etc
Andreas Raab
andreas.raab at gmx.de
Wed Aug 8 06:46:19 UTC 2007
Colin Putney wrote:
> I wouldn't call it a no-brainer. In fact, if it was up to me, I wouldn't
> add these methods to the base image, for two reasons:
>
> 1. They're not idiomatic Smalltalk. If you need to join a collection of
> strings into a single string with a separator it's easy to do with
> #streamConents: and #do:separatedBy:. If you find you're doing it so
> often that you want something more succinct, that's a code smell.
>
> 2. The base image should be getting smaller, not bigger. Split-join can
> live quite well as an external package.
>
> I've been asked about the lack of #join: a few times by people coming to
> Smalltalk from Ruby or Python. They were incredulous that such a
> fundamental thing was missing. But in Smalltalk it's not fundamental -
> Smalltalk is object-oriented, not string-oriented.
+1 on all accounts.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|