[squeak-dev] keeping arrow for assignment operator

Juan Vuletich juan at jvuletich.org
Wed Mar 11 11:11:56 UTC 2009


Ralph Boland wrote:
> I am planning to upgrade the version of Squeak I am using (Squeak 
> 3.8.1 on Linux) to 3.10.
>
> I realize that the arrow for the assignment operator has been
> deprecated and is displayed as an underscore in Squeak 3.9 or later.
> So before I release my open source project I will need to conform
> to using ':=' for assignment.
> But I rather like using the arrow operator because it is easy to read
> and I won't be releasing my open source project for some time.
> So, until I release it, I would like to continue using the arrow and 
> having
> it displayed as an arrow.
>
The only change has been in how the character is displayed. There's no 
change in behavior. You don't really need to convert your code to ':=' 
if you don't want.

> How difficult is it to modify Squeak 3.9 or later so that the display 
> of the '_'
> character shows an arrow?

You need to 'draw' the proper glyph inside the kind of AbstractFont 
you're using. If you're using StrikeFonts, it is not hard. Each font has 
a Form with all the glyphs in it.

> I promise that I will switch to the := operator for assignment before 
> releasing, really!
>
> Ralph Boland


There's not a real consensus in this area. Many people (me included) 
really prefer the left arrow for assignment and will not accept others 
to prevent us from doing so. Please don't promise that. Switch to := 
only if you want.

Cheers,
Juan Vuletich



More information about the Squeak-dev mailing list