Underscores in Identifiers

Andreas Raab andreas.raab at gmx.de
Mon Nov 21 21:45:35 UTC 2005


Bert Freudenberg wrote:
>> Actually, I don't like this approach too much simply because it  
>> creates complete confusion about what the underscore stands for.  The 
>> way I would try to address the problem is by annotating the  source 
>> representation (e.g., file-outs) since this is an issue  which is only 
>> applicable when filing in code so that new code can  be distinguished 
>> properly. Like for example, a line that says  'Parser attributes: 
>> underscoreIsLetter' (or something in that mood)  and that, 
>> Stream>>fileIn can use to set up the parser properly.
> 
> Sure, but what about using underscores when coding? Would you just  
> allow them by default?

To the contrary. If underscores are allowed in method names, then they 
shouldn't be used for assignment (nowhere). And vice versa.

Cheers,
   - Andreas




More information about the Squeak-dev mailing list