[BUG][FIX] String containing single space breaks on #trimBlanks
(v.3 even better )
Chris Becker
chbecker at neo.rr.com
Mon Feb 9 15:05:06 UTC 2004
When was #trimBlanks introduced? Only #withBlanksTrimmed exists in 3.6
#5424.
Chris
> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org [mailto:squeak-dev-
> bounces at lists.squeakfoundation.org] On Behalf Of Julian Fitzell
> Sent: Monday, February 09, 2004 1:28 AM
> To: The general-purpose Squeak developers list
> Subject: Re: [BUG][FIX] String containing single space breaks on
> #trimBlanks (v.3 even better )
>
> Hmm... how about we pick one and mark the other as deprecated - then we
> can move towards *not* having two equivalent methods...
>
> I'd suggest one, but I don't think I really have any strong feeling in
> either direction. #withBlanksTrimmed seems more appropriate for
> something that returns a new object rather than modifying the receiver,
> but then String isn't consistent in this regard anyway and #trimBlanks
> is shorter... :)
>
> Julian
>
> Brent Vukmer wrote:
> > from preamble:
> >
> > "Change Set: String-trimBlanks-bkv
> > Date: 7 February 2004
> > Author: Brent Vukmer <brentvukmer at yahoo.com>
> >
> > v3 - now trimBlanks just calls withBlanksTrimmed. :) Not sure why
> > String defines two equivalent methods. But withBlanksTrimmed as
> > currently defined appears to pass all of the tests that Lukas
> > supplied."!
> >
> >
> > ------------------------------------------------------------------------
> >
> >
>
More information about the Squeak-dev
mailing list
|