[squeak-dev] The Inbox: Collections-topa.366.mcz
asqueaker at gmail.com
Fri Jul 2 18:18:54 UTC 2010
Sorry for the late reply, but an interesting aspect of this for me was
the idea of converting Smalltalk selectors or identifiers to and from
normal written words.
I have had reason to convert the other way, presenting a Maui
user-interface that converts the selector name to words makes the UI's
look conventional without forcing the Maui designer to go in and
override every label.
But converting from words to a selector or identifier, I have not
needed yet. But I can see a potential use: for parsing human written
words to generate code selector names...
On Thu, Jun 24, 2010 at 4:04 PM, Tobias Pape <Das.Linux at gmx.de> wrote:
> Am 2010-06-24 um 21:50 schrieb Bert Freudenberg:
>> 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.
> My usecase was converting a Given String
> to camelcase, as in:
> "prepare food for the winning team" => prepareFoodForTheWinnigTeam
> can be useful for DSLs
> So Long,
More information about the Squeak-dev