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-Thread: a07f3367d7,fd4fc3d2b22df500 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.89.135 with SMTP id bo7mr10041809pab.16.1357395080366; Sat, 05 Jan 2013 06:11:20 -0800 (PST) Path: 6ni84296pbd.1!nntp.google.com!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!us.feeder.erje.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: On Style: Any opinions on *not* capitalising the first letter of verbs in a procedure name ? References: Date: Sat, 05 Jan 2013 09:11:17 -0500 Message-ID: <85623bsosa.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt) Cancel-Lock: sha1:is4HZJWG3f7xRZXErYS0ZHiBoGY= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: c1ac650e83487e029e66112154 X-Received-Bytes: 1710 Content-Type: text/plain Date: 2013-01-05T09:11:17-05:00 List-Id: Simon Wright writes: > Rod Kay writes: > >> declare >> package Integer_Vectors is new Ada.Containers.Vectors (Positive, Integer); >> >> Integers : Integer_Vectors.Vector; >> begin >> Integers.reserve_Capacity; >> Integers.clear; >> end; >> >> >> The idea is to only capitalise 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. > > I like my IDE (Emacs) to capitalise for me, and this would need so many > case exceptions that it'd become impractical. Unless you add a dictionary of verbs/nouns. Maybe automated lookup into the on-line OED - do they have an API? A lot of work for very little gain! But it would be cool if it worked :) Which reminds me; we need a simpler keybinding for "make this word a case exception". -- -- Stephe