From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f79bb,4fbbe75cca706208 X-Google-Attributes: gidf79bb,public X-Google-Thread: 103376,4fbbe75cca706208 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-20 05:38:17 PST Path: nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!epflnews!dinews.epfl.ch!lglsun!nebbe From: nebbe@lglsun.epfl.ch (Robb Nebbe) Newsgroups: comp.lang.ada,comp.lang.sather Subject: Re: Current state of the language Date: 20 Mar 1995 13:38:17 GMT Organization: Ecole Polytechnique Federale de Lausanne Sender: nebbe@lglsun3.epfl.ch (Robb Nebbe) Distribution: world Message-ID: <1995Mar20.141440@lglsun.epfl.ch> References: <3j5p3p$nc1@netnews.upenn.edu> <3k0u6r$e05@miranda.gmrc.gecm.com> <3k9s2j$iq8@moon.src.honeywell.com> <1995Mar17.092345@lglsun.epfl.ch> <3kc8a7$g12@stc06.ctd.ornl.gov> NNTP-Posting-Host: lglsun3.epfl.ch Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Xref: nntp.gmd.de comp.lang.ada:19938 comp.lang.sather:1688 Date: 1995-03-20T13:38:17+00:00 List-Id: In article <3kc8a7$g12@stc06.ctd.ornl.gov>, mbk@jt3ws1.seas.ucla.edu (Kennel) writes: |> Robb Nebbe (nebbe@lglsun.epfl.ch) wrote: |> > As a side note that isn't particularly pertinent - just informative: |> |> > Ada 95 generalizes this concept of class to user defined types |> > which provides the basis for the OO rather than adding on a |> > separate OO annex to the existing language like C++. There |> > are actually some interesting parallels between Ada and Sather |> > since both languages separate polymorphic views from monomorphic |> > views of an object. In Ada these are class-wide types and |> > specific types (or sometimes just classes and types) and in |> > Sather they are called abstract and concrete types. |> |> Oddly enough, the preferred terminology for Sather is now |> "types" for the abstract 'things', and "classes" for the concrete 'things', |> apparently exactly reversed from Ada. :-( |> |> {So I guess it's not my preferred terminology. Abstract types vs. |> concrete classes seems to be clear, however.} Even though "class" and "type" are often used interchangeably in everyday English to mean a group of individuals the nuance between the two is that "type" places the emphasis on the similarity of the members of the group and "class" on the commonality shared by the members of the group. This corresponds more closely with having the abstract view being a class and the concrete view being a type. Of course this is contrary to how a lot of people in computer science actually use the two terms. I've done some speculation on why we have switched the two terms around in computer science. My first thought was that many OO languages have a reserved word "class" but not a reserved word "type" making class seem more concrete. Another point seems to be the confusion between modules and types in these same languages. Robb Nebbe