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-28 03:51:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: Wed, 28 May 2003 10:51:26 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED3CCAE.C8733E2C@somewhere.nil> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1054119086 7845 129.241.83.78 (28 May 2003 10:51:26 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 28 May 2003 10:51:26 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:37890 Date: 2003-05-28T10:51:26+00:00 List-Id: domin wrote: > Gautier Write-only wrote: > >> Hey cool! I would add the possibility of nesting several of >> such comments, or not, and why not also the { } and (* *) of Pascal. >> A pragma would allow ending a { by a *) or */, or not, and ignoring >> or not the rest of a line inside a "/*" after a -- (even if it has a */). >> Did you understand ? I mean, it's simple. > > The idea is simple to understand, but using it will be complicated. > When I see "--" I know it's a comment, without thinking of any > pragmas, comment ending, nesting etc. > I'm using Ada because It's clear & well defined, not because it's handy. > >> And what about including chuncks of code - it would be so cool to >> just insert "c:\...\mytools.inc" at some place instead of these packages. > > Unclear like in C. > >> Another idea: make some names implicitly type. E.g. I, J5, InJm >> and so on are always integers, so why declare them ? > > 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. I think Gautier was ironical when he wrote the above :-) -- Preben Randhol http://www.pvv.org/~randhol/