gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: NSString.m / stringWithoutPrefix: (was Re[2]: GSWeb probs.)


From: Manuel Guesdon
Subject: Re[2]: NSString.m / stringWithoutPrefix: (was Re[2]: GSWeb probs.)
Date: Mon, 16 Sep 2002 16:46:35 +0200 (CEST)

On Mon, 16 Sep 2002 15:30:41 +0100 Richard Frith-Macdonald <address@hidden> 
wrote:
 >| I renamed it to stringByDeletingPrefix: to be consistent with the naming
 >| conventions of the NSString class.
 >| However, I think these methods should probably be deprecated and removed
 >| entirely, as they are trivial to implement and I'd really like to remove
 >| as much non-standard stuff as we reasonably can.

I globaly agree but may be we could move "GNUstep extensions" to a separated 
library instead of just removing these addons ?

 >| After all, we can write [foo substringFromIndex: [bar length]] almost as
 >| easily as writing [foo stringWithoutPrefix: bar]

I'm not sure. It should be coded something like [string 
substringToIndex:[string length]-[ext length]] which is less easy 
to understand when reading the code and, IMHO, less error-proof.

Manuel
--
______________________________________________________________________
Manuel Guesdon - OXYMIUM <address@hidden>
14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
Tel: +33 1 4940 0999  -  Fax: +33 1 4940 0998





reply via email to

[Prev in Thread] Current Thread [Next in Thread]