On 01/11/2011 04:34 PM, Ary Borenszweig wrote:
Oh, one more thing: can the names be consistent?
inpattern
countChars
expandtabs
chompPrefix
toupper
toupperInPlace ??
If this can't be done for backwards compatibility maybe you can make alias for
the
previous ones.
Also:
stripl
stripr
strip
Strips *l*eading and *t*railing whitespaces...
stripLeft, stripRight
Anyway, the necessity for super-cryptic abbreviated names doesn't exist
any more. Maybe, they are justified for very frequently used stuff but
stripl/stripr is not the case.
It took me some time to notice that it was strip*r* (for right), but the comment
says "trailing", and I never think of "remove right space", always "remove
trailing spaces" (like in the comment!). So why not name that function "stript"?