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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada Recursion with strings Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <2fJEk.367687$yE1.299201@attbi_s21> <758a1a91-7521-4ad3-9af0-a79d434ae60e@v28g2000hsv.googlegroups.com> <6e76ea5c-8bca-4c22-b561-87d2039d8924@m36g2000hse.googlegroups.com> Date: Fri, 3 Oct 2008 11:06:51 +0200 Message-ID: <9ph58wagj2xe$.ju8j9tiokwqb.dlg@40tude.net> NNTP-Posting-Date: 03 Oct 2008 11:06:52 CEST NNTP-Posting-Host: 5cd813f3.newsspool2.arcor-online.net X-Trace: DXC=EReHJeIaKo4RLigj];iP=8A9EHlD;3Yc24Fo<]lROoR14nDHegD_]R55b?@mG6VLX3DNcfSJ;bb[5IRnRBaCd__ZO0P0FGQ 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