comp.lang.ada
 help / color / mirror / Atom feed
From: Britt <britt.snodgrass@gmail.com>
Subject: Re: On Style: Any opinions on *not* capitalising the first letter of verbs in a procedure name ?
Date: Fri, 4 Jan 2013 20:19:45 -0800 (PST)
Date: 2013-01-04T20:19:45-08:00	[thread overview]
Message-ID: <aa848e11-e03e-4dcb-be65-300899399d32@googlegroups.com> (raw)
In-Reply-To: <715b71c7-e606-4597-a29b-0e0fef58b4d1@googlegroups.com>

On Friday, January 4, 2013 10:33:02 PM UTC-5, Rod Kay wrote:
> On Saturday, 5 January 2013 03:31:09 UTC+11, Adam Beneschan  wrote:
> 
> 
> 
> > >    The idea is to only capitalize the noun parts of the procedure name. It's a minor thing I guess, yet I find code a little easier to read when used.
> 
> > 
> 
> > 
> 
> > 
> 
> > That would make sense if German is your first language, I suppose.  To me, whose main language is (American) English, it just looks a little weird, aesthetically.  But I don't find it either easier or more difficult to read either way.
> 
> 
> 
> 
> 
>    English is my 1st language, also :). 
> 
> 
> 
>    It occurred to me that verbs are never capitalized in English (except as the leading word in a sentence, of course). Proper nouns (and at one time normal nouns) are capitalized. I guess I find it slightly easier to read as it resembles normal English sentences a little more.

I agree with Bob Duff's reply. I think anything starting with lowercase (other than keywords) looks weird and would distract me.  The common Ada convention is to capitalize first letters and each letter immediately following an underscore.  I also prefer to capitalize the first letter of attributes as in 'Pos. Acronyms should be all caps.

Your proposal would be awkward for most pretty printers like to handle but I think gnatpp could support it using its default "as declared" casing mode. Gnatpp also supports casing exception dictionaries.



  reply	other threads:[~2013-01-05  4:19 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-04  4:27 On Style: Any opinions on *not* capitalising the first letter of verbs in a procedure name ? Rod Kay
2013-01-04  4:32 ` Rod Kay
2013-01-05  1:30   ` Robert A Duff
2013-01-05  3:58     ` Rod Kay
2013-01-05 12:37       ` Simon Clubley
2013-01-06  5:29         ` Rod Kay
2013-01-05  5:13     ` Randy Brukardt
2013-01-06  5:26       ` Rod Kay
2013-01-06 22:03         ` Britt
2013-01-05 19:17     ` Georg Bauhaus
2013-01-04 16:31 ` Adam Beneschan
2013-01-04 16:52   ` AdaMagica
2013-01-05  3:41     ` Rod Kay
2013-01-11  8:01       ` John English
2013-01-11 16:48         ` Martin
2013-01-11 19:26           ` Simon Wright
2013-01-05  3:33   ` Rod Kay
2013-01-05  4:19     ` Britt [this message]
2013-01-05  5:24       ` Randy Brukardt
2013-01-05  5:18     ` Randy Brukardt
2013-01-04 18:32 ` Simon Wright
2013-01-05  3:47   ` Rod Kay
2013-01-05 14:11   ` Stephen Leake
2013-01-05 18:19     ` Simon Wright
2013-01-09  8:21       ` ada-mode create case exception Stephen Leake
2013-01-11 16:16         ` Simon Wright
2013-01-13 23:13           ` Stephen Leake
2013-01-05 14:06 ` On Style: Any opinions on *not* capitalising the first letter of verbs in a procedure name ? Stephen Leake
2013-01-06  5:37   ` Rod Kay
2013-01-11 16:47 ` Martin
replies disabled

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