comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: Ada OOP syntax
Date: Sat, 14 Jun 2008 21:22:35 GMT
Date: 2008-06-14T21:22:35+00:00	[thread overview]
Message-ID: <vEW4k.88395$SV4.30806@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: _9adnb1KYvIrW87VnZ2dnUVZ_vOdnZ2d@comcast.com

There are three thing about OPPs and Ada.

First, the concept of OOP reached it highest point after Ada 95 was out. 
And since then it has falling out of favor with most programmers that are 
not writing GUI applications.  Also, most Ada partitions are not GUI based.

Second, during the vote for Ada 2005/2007 specs the only major player 
was Adacore creators of the GNAT Ada.  But some of the major OOP 
designers such as IBM, current UNIX owner (I do not use their name), 
Apple, Sun, and etc stay way from addressing or voting on 
Ada 2005/2007 specs or about OOP.  That's one reason Adacore's GNAT 
is the only Ada 2005 package around.

Third, Microsoft which is the biggest OPP player around has never dealt 
with Ada as a language.

So, if you want OOPs in a big way you will need to use another 
language.

In <_9adnb1KYvIrW87VnZ2dnUVZ_vOdnZ2d@comcast.com>, "Steve" <nospam_steved94@comcast.net> writes:
>For a programming language that has so much right, Ada sure has oop syntax 
>wrong.  What's more is the syntax is inconsistant with a lot of things that 
>Ada got right and other languages didn't.
>
>One of the strengths of Ada is the lack of ambiguity in code.
>
>In Pascal you have either:
>
>  if <condition> then
>    statement;
>
>or:
>
>  if <condition> then
>    begin
>    end;
>
>or:
>
>  if <condition> then
>    begin
>    end
>  else
>     begin
>     end;
>
>In C/C++/C#/Java you have a similar arrangment.
>
>In Ada you have:
>  if <condition> then
>  end if;
>or
>  if <condition> then
>  else
>  end if;
>
>When you're reading Pascal/C/C++/C# or Java code you have to hunt and look 
>very carefully to figure out the end of an if statement.  It isn't so hard 
>when you have a small block of code, but when you run into a bigger block 
>with nested for, while, and if statements it can get pretty tricky.  Ada is 
>much improved in that regard since the end of an if statement is clearly 
>marked with an "end if".
>
>Ada is has similar constructs for loops, records, block declarations, etc.
>
>Tagged type definitions, IMO are an abomination.  If you look at Delphi (an 
>object oriented version of Pascal), or C++, C# or Java, there is no 
>ambiguity of the scope of the entities that belong to an object.
>
>In Ada there are rules that define the scope of an object.  In my opinion 
>this syntax deficiency is the reason the "overriding" and "not overriding" 
>constructs were added to Ada 2005.  They improve the situation, but you 
>still have to look closely to figure out which entities belong to which 
>objects.
>
>Sure you can use a programming convention to always define one tagged type 
>per package, just like you can use a convention in C++ to always add an "// 
>end if" comment after a closing bracket, but I would expect it to be a 
>requirement of the language.
>
>Don't try to respond by explaining how to deal with tagged type definitions 
>in Ada.  I already understand and have used them.  It's just that when I 
>work with OOP in Ada it's kind of like the drudgery of working with other 
>more deficient programming languages.
>
>Perhaps the language could be enhanced to permit an alternate syntax that 
>clearly defines the scope of a class (or tagged type if anyone is stuck on a 
>name) and a pragma to only permit the alternate syntax added?
>
>Regards,
>Steve
>
>
>
>




  parent reply	other threads:[~2008-06-14 21:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-14 13:26 Ada OOP syntax Steve
2008-06-14 15:31 ` Dmitry A. Kazakov
2008-06-14 18:16 ` Oliver Kellogg
2008-06-18  2:14   ` Steve
2008-06-18  7:48     ` markus034
2008-06-18  9:58       ` christoph.grein
2008-06-18 12:30       ` Dmitry A. Kazakov
2008-06-14 19:24 ` Jeffrey R. Carter
2008-06-14 21:22 ` anon [this message]
2008-06-15 14:32   ` Dirk Heinrichs
2008-06-16  4:59     ` anon
2008-06-16  6:33       ` Dirk Heinrichs
2008-06-17 20:26         ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox