Squeak coding style...
goran.krampe at bluefish.se
goran.krampe at bluefish.se
Sun Feb 29 18:49:01 UTC 2004
Hi all!
Dan Ingalls <Dan at SqueakLand.org> wrote:
> PS: On the topic of variable names, I happen to oppose the "aString" style of variable naming except when you really can't think of anything better. I feel a variable should be typed by its type, and named by its role (ie "boxCount" instead of "anInteger". Unfortunately we don't have a type inference system and a button to show the types when we want them. Me, I'm going to keep naming by role, and encouraging work on type inference.
I agree with this. I would only use "aString" if I couldn't come up with
something better which is "role based". But I still think the general
pattern of "aString" is better than "string".
regards, Göran
More information about the Squeak-dev
mailing list
|