A still sensible question about _ and :=

Stephane Ducasse ducasse at iam.unibe.ch
Tue Apr 24 07:39:27 UTC 2001


> [snip]
>> Eventually, I got used to the VW shortcut of CTRL-G ('gets')*, which is even
>> easier for me to type than _ (I'm left-handed, and CTRL-G is an obvious
>> left-handed chord).  If we could find some way of re-training the hardened
>> coders to use a chord such as that, at least one obstacle would be removed
>> :-).
> 
> If one continued to use _ *only* as the assignment operator, one could
> modify the compiler to pretty print the _ as := at accept time. This woudl
> ensure that all actual code was ANSI compatible with minimal disruption of
> normal patterns. Indeed, one could set up the pretty printer to render :=
> as _ when *browsing* so folks like me who kinda like the arrow could see
> the arrow.


Exactly my point.
I used that when coding but got fed up by the pretty print.
We are creating a visitor to provide flexible ways of pretty printing Squeak
code. So that we could cusotmize the pretty printer without having to touch
the parser ;)))))

> Cheers,
> Bijan Parsia.
> 





More information about the Squeak-dev mailing list