Mega Search
23.2 Million


Sign Up

Make a donation  
a question of form  
News Group: comp.lang.ada

reading Ada 95 second edition, by feldman and koffman, the authors suggest that all reserve words be in caps and identifiers start with a capital letter, etc...

the authors do note that Ada is not case sensitive.

what is the general place in the real world of program form today?

g. 

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 25-Aug-2014, at 1:33 PM EST
From: m
 
Re: a question of form  
News Group: comp.lang.ada
On 28.08.14 15:23, Simon Wright wrote:
>> (I'm collecting them for a patch of Ada mode for Emacs,
>> which makes Good_and_Bad appear automatically.)

> The concept is quite close to "stop words" --
> http://en.wikipedia.org/wiki/Stop_words

Thanks, there's a lot of them, then. Perhaps the list of stop words
needs a vote of some sort.

I guess we don't require any safe words to stop flame wars
over what should be on the lists. ;-)


Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 28-Aug-2014, at 4:08 PM EST
From: G.B.
 
Re: a question of form  
News Group: comp.lang.ada
"G.B."  writes:

> On 27.08.14 09:17, AdaMagica wrote:
>> On Wednesday, August 27, 2014 7:00:47 AM UTC+2, Randy Brukardt wrote:
>>> I've always used title capitalization for identifiers. That is,
>>> capitalize them like a title (which is almost, but not quite the
>>> same as Initial_Caps).  Thus, Good_and_Bad rather than
>>> Good_And_Bad. This gets me into trouble with the RM, because that
>>> requires capitalizing words that one *never* capitalizes in English.
>>
>> I also like this style, and now I have a name for it.
>
> What will be the most wanted (and least controversial)
> words for title case exception in English and other natural
> languages?
>
> (I'm collecting them for a patch of Ada mode for Emacs,
> which makes Good_and_Bad appear automatically.)

The concept is quite close to "stop words" --
http://en.wikipedia.org/wiki/Stop_words

As it says in the article, not to be confused with safe words :-)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 28-Aug-2014, at 2:23 PM EST
From: Simon Wright
 
Re: a question of form  
News Group: comp.lang.ada
On 27.08.14 09:17, AdaMagica wrote:
> On Wednesday, August 27, 2014 7:00:47 AM UTC+2, Randy Brukardt wrote:
>> I've always used title capitalization for identifiers. That is, capitalize
>> them like a title (which is almost, but not quite the same as Initial_Caps).
>> Thus, Good_and_Bad rather than Good_And_Bad. This gets me into trouble with
>> the RM, because that requires capitalizing words that one *never*
>> capitalizes in English.
>
> I also like this style, and now I have a name for it.

What will be the most wanted (and least controversial)
words for title case exception in English and other natural
languages?

(I'm collecting them for a patch of Ada mode for Emacs,
which makes Good_and_Bad appear automatically.)


Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 28-Aug-2014, at 1:56 PM EST
From: G.B.
 
Re: a question of form  
News Group: comp.lang.ada
On 28.08.14 21:35, Randy Brukardt wrote:
> "Jeffrey Carter"  wrote in message
> news:ltnsdb$jtn$2@dont-email.me...

>> In /The Elements of Grammar/ by Margaret Shertzer:
>>
>> "Capitalize all principal words (that is, nouns, pronouns, adjectives,
>> adverbs,
>> verbs, and first words) in titles"
>>
>> The rule I learned is: Capitalize the first and last word of a title;
>> capitalize
>> all other words except articles and short conjunctions and prepositions.
>> "Short"
>> is usually defined as less than 4 letters.

Thanks for the reference and list.

> Anyway, here's the code that creates the list of words:

> As far as a definitive list is concerned, I suspect that there always are
> going to be grey areas where the choice is not obvious. That's why we stuck
> to a minimal list.

It turns out that projects using Emacs Ada mode may register
a simple text file containing "partial words" such as those
in your list; these would have small letters automatically.

In addition, a conditional for excepting both the first and
last word of an identifier was easy to add to the mode's source.
The presence of this little patch or equivalent will, however,
be a matter of demand, I guess.


Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Aug-2014, at 1:55 PM EST
From: G.B.
 
Re: a question of form  
News Group: comp.lang.ada
Simon Wright  writes:

> I gather from browsing the Guardian style guide that the rules (not
> just for headings) required all-caps for mentions of ministers of the
> Crown; "the HOME SECRETARY stated that ...". Ugh.

I should have said, that was in the dim-and-distant past.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 28-Aug-2014, at 9:48 PM EST
From: Simon Wright