Arithmetic (was: Polymorphism without protocol dilution)

Stephen Travis Pope stp at limbo.create.ucsb.edu
Thu Aug 27 03:26:16 UTC 1998


I'd like to add to this discussion that I *strongly* support the wide use of
double dispatching (in lieu of multiple polymorphism in the language) rather
than generality or adaptation methods, and that there are many potential uses
for it with geometrical objects, other kinds of magnitudes (e.g., pitch,
duration, loudness), etc.

The trade-off is a relative explosion in the number of methods that must be
written, but most of these are 1-liners that can be automatically generated.
DD is the only realistic (and safe) way to allow the extension of the range
of magnitudes.

stp

_ Stephen Travis Pope
_ Center for Research in Electronic Art Technology (CREATE)
_ Dept. of Music, Univ. of California, Santa Barbara (UCSB)
_ stp at create.ucsb.edu,  http://www.create.ucsb.edu/~stp/





More information about the Squeak-dev mailing list