home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.lang.scheme
- Subject: Re: R^4RS Authors Comments on Dylan
- Date: 15 Aug 1992 09:18:38 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 28
- Message-ID: <16ii5eINNonl@early-bird.think.com>
- References: <9208132109.AA16509@peanut.crl.dec.com> <16ge8vINNe1f@agate.berkeley.edu>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <16ge8vINNe1f@agate.berkeley.edu> bh@anarres.CS.Berkeley.EDU (Brian Harvey) writes:
- >jmiller@crl.DEC.COM writes:
- >>o Dylan's use of generic functions, derived directly from CLOS, fit
- >> into the language in a particularly elegant manner.
- >But I want to try to get educational concerns
- >into the picture, so that the eventual decision isn't made entirely
- >in terms of what's easy to implement efficiently and so on.
-
- That's a strange comment to make. I have never heard anyone claim that
- CLOS-style multiple dispatch is easier to implement efficiently than
- traditional single dispatch OO.
-
- Regarding the notion of "smart objects" and message passing, we in the CLOS
- community have basically decided that this is an artificial and restrictive
- paradigm. We believe that the essence of OO programming is class
- inheritance and dynamic function dispatching. The notion of
- object->class->method-table is not necessary for understanding this; it's a
- useful implementation technique for methods that only specialize on one
- argument, but it's not the appropriate way to conceptualize things. In
- particular, it breaks down completely when the choice of implementation
- technique is based on two parameters (consider output, where the effect is
- dependent on both the type of object being output and the type of output
- destination (ASCII terminal, window, or file)).
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-