Why so few binary method selectors? Because they're bad!

Peter William Lount peter at smalltalk.org
Tue Mar 16 23:21:21 UTC 1999


Hi,

Readability is very important for Smalltalk code. If we're not carefull it
will end up looking like apl code! Let's not get to crazy with those
#&*%#$*#&%@*!$& binary selectors!

sameObjectAs: would be better than sameAs: or ==.

Peter William Lount

----------
From: Reinier van Loon <R.L.J.M.W.van.Loon at inter.nl.net>
To: squeak at cs.uiuc.edu
Subject: Re: Why so few binary method selectors? Because they're bad!
Date: March 16, 1999 12:40 PM

>down, let me ask the group a question. If we could have long binary
>method selectors, what would be the first one you would define, and what
>would it do? Best regards. -- Ward
None.

I think binary selectors make code harder to read.
I'm still having troubles explaining == and = to people.
sameAs: and equals: would have been better IMHO.

The other problem with binary selectors is that they might get multiple
meanings.

Reinier.





More information about the Squeak-dev mailing list