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,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-29 11:51:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: 29 May 2003 14:51:28 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED3CCAE.C8733E2C@somewhere.nil> <8K-cnfftnpLd5UijXTWcrg@gbronline.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1054234288 16546 199.172.62.241 (29 May 2003 18:51:28 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 29 May 2003 18:51:28 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:38010 Date: 2003-05-29T14:51:28-04:00 List-Id: Wesley Groleau writes: > > In some of my code I used first letter to indicate the type > > something like Hungarian notation with T. e.g. > > i - integers, names like iCount, iMoney etc > > s - string > > b - boolean > > f - float > > It gives the code great clearance, but it would be hard to deal this way > > with self-defined types. > > This is just as offensive as HTML newsposts. > (Or stupid newsreaders that answer posts in HTML when I don't want them to!) > > Anyway, you discover a variable needs to be a float instead of an integer, > so you have to search and replace through all the clients? > Ada is a high-order language--that means it should express the abstraction, > NOT the implementation. More importantly, a typical Ada program has hundreds of integer types, so putting "i" at the front of variable names doesn't tell you much of anything interesting. - Bob