Sean P. DeNigris wrote:
FDominicus wrote
Well I also know that capitalized is a very "old" thing but the second name is more specific. So what about: withFistCharacterUpshifted .... as counterpart?
I see what you mean... Apple's dictionary says that capitalized could mean "all caps" or "first letter capitalized", so I guess it's ambiguous.
For #withFirstCharacterDownshifted, isn't downshifted misleading? It only works on letters. For instance, it doesn't change $: to $;. I would change #withFirstCharacterDownshifted->#withFirstCharacterLowercase.
And if I changed #capitalized, it would be to something like #withFirstCharacterCapitalized (or uppercase). Also, the method you extracted uses "letter" instead of "character". They should all be uniform.
----- Cheers, Sean -- View this message in context: http://forum.world.st/I-stumbled-upon-tp4678839p4679024.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
That could just be #withFirstCapitalized - you already know you are dealing with characters (?) ...