Fw: Squeak and CM (fwd)

Stephan Rudlof sr at evolgo.de
Thu Jan 20 00:58:39 UTC 2000


Doug Way wrote:
> 
> So, another sample selector-to-filename mapping would look like:
> 
> value  ->  value
> value:  ->  value_c
> at:put:  ->  at_cput_c
> ==  ->  _e_e
> <=  ->  _l_e
> ugly_accessor_method  ->  ugly__accessor__method

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).

> 
> (Maybe using capital letters for the character mappings might be more
> readable too... e.g. : -> _C so that at:put: -> at_Cput_C .)

I don't like this, because in 'at_Cput_C' the first '_C' belongs to 'at'
but visually it seems to belong to 'put'.

> 
> Anyway, readability is not really critical in this situation, but it's a
> thought.
> 

It's not critical but useful for debugging/learning/understanding
purposes.


Stephan





More information about the Squeak-dev mailing list