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: 103376,a04e500922557815 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-15 19:37:05 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Need advice: Enumerate or not Date: 15 May 2002 19:37:05 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205151837.5b773899@posting.google.com> References: <3CE2540C.1030404@worldnet.att.net> <3CE2A23D.850BA244@acm.org> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1021516625 4105 127.0.0.1 (16 May 2002 02:37:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 May 2002 02:37:05 GMT Xref: archiver1.google.com comp.lang.ada:24147 Date: 2002-05-16T02:37:05+00:00 List-Id: Jeffrey Carter wrote in message news:<3CE2A23D.850BA244@acm.org>... > To summarize, enumeration types are easier to read but require writing > more code. Dispatching (OOP) is harder to read but requires less coding. Not by any means universally true, depends upon the situation > Ada has as an explicit design goal of emphasizing ease of reading over > ease of writing. Thus Rogers' statements support the claim that > dispatching is not in the spirit of Ada. If meant as a general statement, this is a very peculiar claim. The real rule in Ada is use the appropriate design to make the code as easy as possible to read *and* maintain. Sometimes dynamic dispatching meets this criterion, sometimes it fails. Those who insist on using dispatching and extended types for everything doom themselves to write rubbish code that is hard to read and hard to maintain in some situations. Those who absolutely refuse to use dispatching and type extension ever doom themselves to the same fate. Why is it in the PL area that people get so absolute. Very odd!