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,66bc6b039f1e005d
X-Google-Attributes: gid103376,public
From: Pascal Obry
Subject: Re: Three simple questions
Date: 2000/10/11
Message-ID: #1/1
X-Deja-AN: 680103828
References:
<2BED68CA963D6D55.A78776F656DA0452.75A61ED22116F1B6@lp.airnews.net>
<39e2588f.21565740@news.demon.co.uk>
<39E2D51E.D0122F20@bton.ac.uk> <8s0b78$2no$1@nnrp1.deja.com>
<39E434F7.36E914B8@bton.ac.uk>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@wanadoo.fr
X-Trace: wanadoo.fr 971264877 1114 164.138.151.214 (11 Oct 2000 11:47:57 GMT)
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Mime-Version: 1.0
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7
NNTP-Posting-Date: 11 Oct 2000 11:47:57 GMT
Newsgroups: comp.lang.ada
Date: 2000-10-11T11:47:57+00:00
List-Id:
John English writes:
> wv12@my-deja.com wrote:
> >
> > In article <39E2D51E.D0122F20@bton.ac.uk>,
> >
> > > I'm dead against case sensitivity. For example, in Java you not only
> > > have to remember a zillion API calls to do anything useful, you also
> > > have to remember how they're capitalised. The Java rule is that class
> > > names have EachWordCapitalised (or is that EachWordCapitalized? :-),
> > > which is fine when you can remember whether "run time" is one word
> > > or two (is it RuntimeException or RunTimeException?).
> >
> > Case sensitivity enforces consistency among code produced by different
> > programmmers. Imagine programmer A insists on writing runTimeeXception
> > and programmer B insits writing runtimeexcception. Maybe you yourself
> > on Monday decides to write runtimeException and on Tuesday,
> > RUNTIMEEXCEPTION. Now, that is sick. Well, if you can do anything
> > *useFUl* in Ada, you don't have to write it in Java.
>
> So what's wrong with running a prettyprinter over the code? Any
> sensible prettyprinter will not only enforce a layout standard,
> it'll enforce a capitalisation standard (turn runtime_exception
> into Runtime_Exception)? Software tools are supposed to make life
> easier, not harder (although there are many counter-examples ;-)
Definitly such tool exist. I always use the GNAT -gnaty switch now. It is
very good to have the compiler checking for source consistency. Also GLIDE
do capitalize things automatically. You can like the way the capitalization is
done (mostly using the RM convention) or not, at least it is done
consistently !
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"