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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b3855c7c1e6ef286 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!a1g2000hsb.googlegroups.com!not-for-mail From: Gene Newsgroups: comp.lang.ada Subject: Re: Naming convention for constructor functions Date: Fri, 21 Mar 2008 18:31:21 -0700 (PDT) Organization: http://groups.google.com Message-ID: <683eb707-a70b-4858-b20e-93cdb5f44044@a1g2000hsb.googlegroups.com> References: <5f1f42a3-31ea-4bac-8e3e-29483474e282@i29g2000prf.googlegroups.com> NNTP-Posting-Host: 70.101.174.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1206149482 27221 127.0.0.1 (22 Mar 2008 01:31:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 22 Mar 2008 01:31:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a1g2000hsb.googlegroups.com; posting-host=70.101.174.178; posting-account=-BkjswoAAACC3NU8b6V8c50JQ2JBOs04 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20541 Date: 2008-03-21T18:31:21-07:00 List-Id: On Mar 12, 11:15=A0am, Lucretia wrote: > On Mar 12, 1:43 pm, Maciej Sobczak wrote: > > > I can also imagine Create_T, Construct_T, etc., but Make_T seems to be > > the shortest while still conveying the meaning properly. Is it also > > most widely used? > > IIRC, the style guide mentions both Make_T and Create_T. I can image > Constructor_T being a pain to type after a while, the first 2 convey > meaning and are short, so I'd pick one of those. > > Luke. That's interesting. After teaching many beginning programmers I finaly figured out that if I tell them to name procedures as verbs and functions as nouns, they more quickly catch on as to the difference. Therefore I claim there is a lot to recommend New_T as more intuitive. It also agrees with the allocator syntax.