From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada Recursion with strings
Date: Fri, 3 Oct 2008 11:06:51 +0200
Date: 2008-10-03T11:06:52+02:00 [thread overview]
Message-ID: <9ph58wagj2xe$.ju8j9tiokwqb.dlg@40tude.net> (raw)
In-Reply-To: 6e76ea5c-8bca-4c22-b561-87d2039d8924@m36g2000hse.googlegroups.com
On Thu, 2 Oct 2008 23:54:23 -0700 (PDT), Maciej Sobczak wrote:
> I agree that constants should be named, but even most strict coding
> standards allow several literals to be unnamed and the smallest set is
> 0 and 1. I think that 2 and 8 are on the border of acceptance too.
Yes, but not always so. In some cases you might like to have "additive
zero" instead of 0. After all literal is a name too. The difference is
whether the name is self explaining for the reader. The name 3.1415... is
worse than Pi, 8 is probably better than Octet_Size.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2008-10-03 9:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-30 20:30 Ada Recursion with strings Joe
2008-09-30 22:24 ` Adam Beneschan
2008-09-30 22:24 ` Jeffrey R. Carter
2008-10-01 0:13 ` Joe
2008-10-01 0:27 ` Jeffrey R. Carter
2008-10-01 1:15 ` Robert A Duff
2008-10-01 11:34 ` Jeffrey R. Carter
2008-10-01 14:29 ` Adam Beneschan
2008-10-01 15:18 ` Jean-Pierre Rosen
2008-10-01 16:47 ` Georg Bauhaus
2008-10-02 7:24 ` Niklas Holsti
2008-10-02 8:18 ` Ludovic Brenta
2008-10-03 6:54 ` Maciej Sobczak
2008-10-03 7:38 ` Jean-Pierre Rosen
2008-10-03 9:06 ` Dmitry A. Kazakov [this message]
2008-10-01 0:28 ` Adam Beneschan
2008-10-01 9:48 ` Georg Bauhaus
2008-10-01 10:22 ` Dmitry A. Kazakov
2008-10-01 3:01 ` anon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox