Eliminating assignments and variable syntax (accessors)

Travis Griggs tgriggs at keyww.com
Tue Aug 3 22:33:14 UTC 1999


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? :)

--
Travis Griggs (a.k.a. Lord of the Fries)
Member, Fraven Skreiggs Software Collective
Key Technology
P-P-P-Penguin  Power!





More information about the Squeak-dev mailing list