comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: non key-words in xemacs to be upper case
Date: 1996/08/17
Date: 1996-08-17T00:00:00+00:00	[thread overview]
Message-ID: <dewar.840288018@schonberg> (raw)
In-Reply-To: osloffs3ug.fsf@ted.vigra.com


iDavid Brown says

"> I am an ADA programmer and using xemacs 19.13. The ADA-Mode of the
> Xemacs formats the non key-words to the first character upper case
> and the rest lower case. Our S/W development bible tolds us to write
> those words completely upper case. Who can help me ?"

I guess your software bible also tolds you to misspell poor old Ada's name
too right? 

You should wonder whether your software bible should be reconsidered. It is
borrowing an Ada 83 convention that by now is pretty universally considered
inappropriate. You might note that this all upper case style was never
explicitly recommended even for Ada 83, it was just implicitly recommended
by the examples in the RM.

The history of this is that only two styles were seriously considered,

   o  Keywords in all caps, identifiers in lower case
   o  keywords in lower case, identifiers in all caps

Some readability studies showed that the second is preferable (and looking
at Mike Feldman's code, which uses all capital keywords, I have to agree,
I find the all caps for keywords style horrible, and it is interesting to
note that although I encouraged my students to follow any style they liked,
as long as it was consistent, and although they had Mike's text book, not
ONE decided to capitalie keywords!

However, the general agreement these days is that neither of these
styles is the right choice, and that instead almost all programmers
prefer all lower case keywords and identifiers either in Mixed_Case
or (I think it is a minority, but a noticable one) as MixedCase, 
followingh the Pascal style (which is also what MS follows in their
API's).

So I think you should consider revising your bible (take a look at the
Ada 95 RM to see that its implicit recommendation is for Mixed_Case
identifiers).





  reply	other threads:[~1996-08-17  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-16  0:00 non key-words in xemacs to be upper case Frank.Bade
1996-08-16  0:00 ` David L Brown
1996-08-17  0:00   ` Robert Dewar [this message]
1996-08-19  0:00     ` Ken Garlington
1996-08-25  0:00       ` Robert Dewar
1996-08-25  0:00         ` Michael Feldman
1996-08-29  0:00         ` Charles Lindsey
1996-08-31  0:00           ` Robert Dewar
1996-09-01  0:00   ` Brian Rogoff
1996-08-17  0:00 ` j. doe
1996-08-19  0:00 ` David Wheeler
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox