Eliminating assignments and variable syntax (accessors)

Jarvis, Robert P. Jarvisb at timken.com
Wed Aug 4 12:13:44 UTC 1999


> -----Original Message-----
> From:	Travis Griggs [SMTP:tgriggs at keyww.com]
> Sent:	Tuesday, August 03, 1999 6:33 PM
> To:	squeak at cs.uiuc.edu
> Subject:	Re: Eliminating assignments and variable syntax (accessors)
> 
> Stefan Matthias Aust wrote:
> 
> > I know this isn't Smalltalk anymore but I don't care at this moment:
> The
> > dot-operator is well known to access slots, so why not write "self.x" to
> > access slot x of the current receiver or "anyObject.y" to access
> > anyObject's slot.  The :=-operator is well known for assignments, so use
> it
> > to assign values to slots or local variables.  The []-operator is known
> for
> > indexed access, so use it instead of at: and at:put:.  Actually all
> > operators can be understood as macros.
> 
> :0 Noooooo.... Nooo... No.. not the dot operator... aaaaaahhhhhhh....!!!
> 
> Ahem. Please. Anything but the dot operator. Or come up with a different
> statement terminator. Semicolon anyone? :)
> 
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEK!!!!!!!!!!!!!!!!!!!!
!!

Bob Jarvis
The Timken Company





More information about the Squeak-dev mailing list