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-Thread: 103376,2a687662f09731bb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: comp.lang.ada Subject: Re: Ada Quality and Style book discussion ("_Type" suffix) References: <1132227241.9036.44.camel@sonnenregen> <437c877e$1_1@glkas0286.greenlnk.net> From: Brian May Date: Fri, 18 Nov 2005 14:04:51 +1100 Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:iuySFfqaHZPSv6IKOAhG83Si+k4= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: snoopy.microcomaustralia.com.au X-Trace: news.melbourne.pipenetworks.com 1132283091 202.173.153.89 (18 Nov 2005 13:04:51 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!news.xtra.co.nz!news-south.connect.com.au!duster.adelaide.on.net!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:6459 Date: 2005-11-18T14:04:51+11:00 List-Id: >>>>> "Marc" == Marc A Criley writes: Marc> Joel describes how Hungarian notation got wrecked in "Making Marc> Wrong Code Look Wrong" Marc> (http://www.joelonsoftware.com/articles/wrong.html). Looks like a good article. In a strongly typed language, I would prefer to use different types, so the compiler does the checking. However, if you have to use a language that isn't strongly typed, good Hungarian notation looks like a good compromise. With respect to his complaint on exception handling - I like the Java model where every exception that can be raised by a function has to be declared - that way you don't have to check for exceptions that don't currently occur - and if the specifications change, the compiler can generate an error to let you know that you may not have considered an exception. I think it is a limitation of the Ada exception handling model that a function can raise any exception - including exceptions that are outside the scope of the caller. Nor does Ada have a "finally" clause. (yes, I realize some people hate this...) -- Brian May