TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
"Robert I. Eachus" <[log in to unmask]>
Fri, 20 Nov 1998 17:42:32 -0500
text/plain (28 lines)
At 05:38 PM 11/15/98 +0100, Christoph & Ursula Grein wrote:
>Why should all languages use similar syntaxes?

     Exactly.  There are, on the other hand, reasons for languages to have
different syntaxes.  In this particular case, the advantages of the
selected syntax in the context of Ada were felt to outweigh the
"disadvantage" of not having a class keyword.   When Jean Ichbiah proposed
an alternative that did use the class keyword, these advantages were not
yet known.  It is possible that someone could come up with a notation with
classes that allowed the same degree of expressiveness as the current
grammar, but I doubt it.  For example, the current notation allows for
untagged views of tagged types, as well as private tagged types:

     type Foo is tagged private;

    versus:

     type Foo is private;
     ...
   private
     type Foo is tagged...

                                        Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...

ATOM RSS1 RSS2