Two years later and I revise my stance on usefulness ;)
Merged into trunk.
One issue down the road might be that Etoys has a method with the same selector, but it does not change the case of the first character. Also, it does not create a copy of the string if there is no space in it. And it only looks for spaces. I like the simplicity of Tobias' version though, which is why I committed that one.
- Bert -
On 24.06.2010, at 12:50, Bert Freudenberg bert@freudenbergs.de wrote:
Seems of limited usefulness to me.
The only time I remember needing something similar was when I had to convert under_score_selectors to camelCase, and in that case your method wouldn't even have helped.
- Bert -
On 24.06.2010, at 21:23, Tobias Pape wrote:
Isn't anybody interested in this? I thought, camel case would be required more than occasionally ;)
So Long, -tobias
Am 2010-06-16 um 16:07 schrieb Tobias Pape:
Hi,
this little method may save some time if you need to generate readable method selectors frequently. Any objections against trunk inclusion?
So Long, -Tobias Am 2010-06-16 um 13:34 schrieb commits@source.squeak.org:
==================== Summary ====================
Name: Collections-topa.366 Author: topa Time: 16 June 2010, 3:34:47.932 pm UUID: 5491e7f9-bcc4-423a-a267-8853ca2eb9a3 Ancestors: Collections-ul.365
Provide #asCamelCase for Strings. May be usefull for natural language conversation or the like.