Fw: Squeak and CM (fwd)
Stephan Rudlof
sr at evolgo.de
Thu Jan 20 01:43:21 UTC 2000
Stephan Rudlof wrote:
>
> What do you think of enhancing readability by using the escape character
> *twice* as braces around characters which denote special characters
> like:
>
> value -> value
> value: -> value_c_
> at:put: -> at_c_put_c_
> == -> _ee_
> <= -> _le_
> ugly_accessor_method -> ugly___accessor___method
>
> and multiple '_':
>
> very__ugly__accessor__method -> very____ugly____accessor____method
> or
> very__ugly__accessor__method -> very_uu_ugly_uu_accessor_uu_method
> (u for underline).
>
I've been catched by the ambiguity problem:
If using multiple '_' like in the first case
problemAccessor_:eee:
translated to
-> problemAccessor____c_eee_c_
could also mean
problemAccessor__c===c_
.
So its better to use the second variant
-> problemAccessor_u__c_eee_c_
which should work.
Stephan
--
Stephan Rudlof (sr at evolgo.de)
"Genius doesn't work on an assembly line basis.
You can't simply say, 'Today I will be brilliant.'"
-- Kirk, "The Ultimate Computer", stardate 4731.3
More information about the Squeak-dev
mailing list
|