home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.object:3080 comp.lang.eiffel:1031
- Path: sparky!uunet!gatech!destroyer!gumby!yale!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!ut-emx!hasan
- From: hasan@ut-emx.uucp (David A. Hasan)
- Newsgroups: comp.object,comp.lang.eiffel
- Subject: Re: Class methods (was: Re: How to design a data structure library)
- Message-ID: <76889@ut-emx.uucp>
- Date: 31 Jul 92 15:54:55 GMT
- References: <GEOFF. 92Jul27100601@wodehouse.flash.bellcore.com> <graham.712278529@galois> <92210.125846MKK2@psuvm.psu.edu>
- Followup-To: comp.object
- Organization: UTexas Center for Space Research
- Lines: 39
-
- In article <92210.125846MKK2@psuvm.psu.edu> MKK2@psuvm.psu.edu writes:
-
- >[...] c := a + b translates into English for me
- >as something like "start with a, perform the union operation on it with
- ^^^^^^^^^^^^
- >b as an argument, return the union as a result, and assign it to c."
-
-
- Undoubtedly, this is the kernel of the discussion. Does the
- statement
- c := a + b
- universally translate into "start with a..."? (I.e., does
- everyone agree that the "+" operator in fact "starts" with
- its left operand? I don't think so. The "+" operator is
- suggestive of an commutative operation in which there is
- no preference for either argument as the starting point.
- This is the heart of the "symmetry" complaint which many feel
- makes the OO notation cumbersome for such situations.
-
-
- >While your crystal clear traditional syntax is nice, I feel fine with
- >
- > c = [a union:b];
-
-
- As long as it is accepted that the meaning of the operation
- is "start with a..." then the differences here are nil, but
- the heart of this discussion is whether or not it is
- reasonable for the notation to impose this asymmetry. The
- "+" notation was in fact suggested precisely because it
- does not require the notion of "starting with a...", and
- to that extent, the "[a union: b]" notation is not an
- acceptable alternative.
-
- Of course, we've got to keep all this in perspective. It
- really IS a syntax/notation issue...isn't it?
- --
- | David A. Hasan
- | hasan@emx.utexas.edu
-