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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47def5aa7b3182bd X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: How to write TYPECASE in Ada 95? Date: 1999/02/18 Message-ID: <7ai3m2$4t0$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 445833345 References: <79fct8$9k3$1@murdoch.acc.Virginia.EDU> <1103_918264881@DZOG-CHEN> <36cb2712.1390453@news.pacbell.net> X-Http-Proxy: 1.0 x7.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Feb 18 22:19:55 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-02-18T00:00:00+00:00 List-Id: tmoran@bix.com (Tom Moran) writes: > Dispatching is certainly better than a case statement - > if you use it. I strongly disagree with this statement. This particular bit of conventional wisdom is badly in error, and can lead to unnecessarily obscure hard to maintain programs. Case statements and dispatching represent two ways of slicing a 2-D array of types vs operations. The use of case statements may make it easier to add operations, the use of dispatching may make it easier to add types. Which is better depends on the particular situation. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own