From: "Dr. Adrian Wrigley" <amtw@linuxchip.demon.co.uk.uk.uk>
Subject: Re: Naming convention to identify functions with side effects
Date: Mon, 29 Sep 2008 22:22:56 GMT
Date: 2008-09-29T22:22:56+00:00 [thread overview]
Message-ID: <pan.2008.09.29.22.22.54.593060@linuxchip.demon.co.uk.uk.uk> (raw)
In-Reply-To: 5654ee5f-aa9f-4fff-87e0-45854b850f26@y38g2000hsy.googlegroups.com
On Mon, 29 Sep 2008 11:17:42 -0700, Hibou57 wrote:
> Hello every body out there,
>
> Do some one know a commonly used or at least a good, naming convention
> to identify functions with side effects ?
All functions have side effects - unless you prefix them with "Pure_".
So you would have:
function Pure_Polynomial (...) return Float;
Programmers generally expect functions not to be pure. So mark the ones
which are pure to alert the user. If you can be bothered.
I've never seen it used though!
--
Adrian
prev parent reply other threads:[~2008-09-29 22:22 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-29 18:17 Naming convention to identify functions with side effects Hibou57 (Yannick Duchêne)
2008-09-29 18:45 ` Hibou57 (Yannick Duchêne)
2008-09-29 18:55 ` Adam Beneschan
2008-09-29 19:52 ` Dmitry A. Kazakov
2008-09-29 20:48 ` Georg Bauhaus
2008-09-29 21:10 ` Adam Beneschan
2008-09-30 15:17 ` Georg Bauhaus
2008-09-30 17:40 ` Ray Blaak
2008-10-02 12:33 ` Ole-Hjalmar Kristensen
2008-10-03 9:18 ` Georg Bauhaus
2008-10-06 7:24 ` Ole-Hjalmar Kristensen
2008-10-03 11:51 ` Brian Drummond
2008-10-03 12:28 ` Dmitry A. Kazakov
2008-10-04 12:30 ` Marco
2008-10-04 13:05 ` (see below)
2008-10-04 15:14 ` Gary Scott
2008-10-11 11:32 ` Marco
2008-10-11 14:57 ` Dmitry A. Kazakov
2008-10-11 16:05 ` (see below)
2008-10-11 17:49 ` Georg Bauhaus
2008-10-11 18:42 ` (see below)
2008-10-03 13:15 ` Jeffrey Creem
2008-09-29 20:57 ` Georg Bauhaus
2008-09-29 22:22 ` Dr. Adrian Wrigley [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox