From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Naming convention for constructor functions
Date: Wed, 12 Mar 2008 06:43:11 -0700 (PDT)
Date: 2008-03-12T06:43:11-07:00 [thread overview]
Message-ID: <cac99227-81e0-4f47-b857-c064bb04d973@y77g2000hsy.googlegroups.com> (raw)
Hi,
What is the established convention for naming constructor functions?
I'm mostly concerned with constructors for limited types, but that
should not matter here.
One nice convention that I've seen is:
type Person (<>) is limited private;
function Make_Person (someparameters) return Person;
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?
--
Maciej Sobczak * www.msobczak.com * www.inspirel.com
next reply other threads:[~2008-03-12 13:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 13:43 Maciej Sobczak [this message]
2008-03-12 15:15 ` Naming convention for constructor functions Lucretia
2008-03-22 1:31 ` Gene
2008-03-22 13:01 ` Georg Bauhaus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox