From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: Case sensitivity (was Re: no title)
Date: Wed, 04 Jun 2003 16:00:24 -0400
Date: 2003-06-04T16:00:24-04:00 [thread overview]
Message-ID: <1054756824.267420@master.nyc.kbcfp.com> (raw)
In-Reply-To: <82347202.0306041126.7e9b0e97@posting.google.com>
Jim Rogers wrote:
> In an Ada program I would expect values corresponding to an
> acronym to be defined as enumeration values. Variables should
> not be named after an acronym. Acronyms have a constant value.
> Variables have variable values. Acronyms map more correctly to
> enumeration values in Ada and C++, or constants in either language,
> than to variables.
If my Iraq-bound bomber has a single very large explosive device
on it, I don't see any reason why the type describing that device
shouldn't be called 'MOAB' and why its single instance object
shouldn't be called 'moab'.
If I'm serializing some objects to a file, I don't see why I
shouldn't do
enum { SNAP, CRACKLE, POP };
void serialize(stream &o, const Snap &v) { o << SNAP << v; }
void serialize(stream &o, const Crackle &v) { o << CRACKLE << v; }
void serialize(stream &o, const Pop &v) { o << POP << v; }
> It takes full advantage of case sensitivity, which C and C++ deem good.
We want to take advantage of case sensitivity in a good way,
using the commonality of spelling but the distinction of case
as a way of communicating with the reader of the code. Ada
cannot mandate a good choice of names, but has prevented a
potential good choice of names on the grounds of trying to
eliminate one small set of possible bad choices. I don't buy
that argument at all.
> The compiler may have a different opinion of the meaning of an
> identifier than does the human reader of the code. Such differences
> of opinion can be problematic.
But that happens as soon as any overloading, or even hiding,
is allowed.
next prev parent reply other threads:[~2003-06-04 20:00 UTC|newest]
Thread overview: 190+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-02 7:55 no title And838N
2003-06-02 8:09 ` Preben Randhol
2003-06-02 10:41 ` Case sensitivity (was Re: no title) Sergey Koshcheyev
2003-06-02 11:03 ` Bobby D. Bryant
2003-06-02 11:12 ` Preben Randhol
2003-06-02 11:56 ` Sergey Koshcheyev
2003-06-02 12:46 ` Bobby D. Bryant
2003-06-02 13:50 ` Sergey Koshcheyev
2003-06-02 14:35 ` Preben Randhol
2003-06-02 14:51 ` Sergey Koshcheyev
2003-06-02 14:52 ` Bill Findlay
2003-06-02 20:36 ` Alexander Kopilovitch
2003-06-02 12:55 ` Preben Randhol
2003-06-02 12:58 ` Preben Randhol
2003-06-02 13:54 ` Sergey Koshcheyev
2003-06-02 14:44 ` Preben Randhol
2003-06-02 15:06 ` Sergey Koshcheyev
2003-06-02 15:42 ` Preben Randhol
2003-06-03 1:15 ` Randy Brukardt
2003-06-03 3:47 ` John R. Strohm
2003-06-03 11:36 ` Preben Randhol
2003-06-03 15:05 ` Robert I. Eachus
2003-06-03 20:12 ` Randy Brukardt
2003-06-05 1:48 ` Robert I. Eachus
2003-06-03 16:25 ` David C. Hoos
2003-06-02 13:24 ` Arthur Evans Jr
2003-06-02 13:38 ` Sergey Koshcheyev
2003-06-02 15:20 ` Robert C. Leif
2003-06-02 15:33 ` Larry Kilgallen
2003-06-03 1:35 ` Randy Brukardt
2003-06-05 17:30 ` Larry Hazel
2003-06-05 17:55 ` Hyman Rosen
2003-06-08 1:52 ` AG
2003-06-08 3:24 ` Hyman Rosen
2003-06-08 4:36 ` AG
2003-06-08 4:39 ` Hyman Rosen
2003-06-02 15:48 ` Martin Dowie
2003-06-02 18:18 ` Mike Silva
2003-06-02 18:29 ` Hyman Rosen
2003-06-02 18:40 ` tmoran
2003-06-02 18:51 ` Bobby D. Bryant
2003-06-02 21:24 ` Mike Silva
2003-06-03 3:50 ` John R. Strohm
2003-06-03 9:29 ` Georg Bauhaus
2003-06-02 19:02 ` Hyman Rosen
2003-06-02 20:28 ` tmoran
2003-06-03 9:33 ` Georg Bauhaus
2003-06-02 19:06 ` Georg Bauhaus
2003-06-03 3:49 ` John R. Strohm
2003-06-03 7:42 ` Jean-Pierre Rosen
2003-06-02 21:21 ` Mike Silva
2003-06-02 21:56 ` Hyman Rosen
2003-06-02 22:56 ` Larry Kilgallen
2003-06-02 23:30 ` Preben Randhol
2003-06-08 2:26 ` AG
2003-06-03 7:41 ` Jean-Pierre Rosen
2003-06-03 14:06 ` Hyman Rosen
2003-06-03 14:31 ` Preben Randhol
2003-06-03 14:49 ` Hyman Rosen
2003-06-03 16:29 ` Jean-Pierre Rosen
2003-06-03 18:06 ` Hyman Rosen
2003-06-03 18:34 ` Mike Silva
2003-06-03 18:53 ` Hyman Rosen
2003-06-04 10:41 ` Preben Randhol
2003-06-04 14:11 ` Hyman Rosen
2003-06-04 15:48 ` Preben Randhol
2003-06-04 16:03 ` Hyman Rosen
2003-06-04 16:24 ` Preben Randhol
2003-06-04 17:30 ` Hyman Rosen
2003-06-04 17:36 ` Preben Randhol
2003-06-04 17:52 ` Hyman Rosen
2003-06-04 17:05 ` Larry Kilgallen
2003-06-04 17:45 ` Hyman Rosen
2003-06-05 17:23 ` Stephen Leake
2003-06-05 17:51 ` Hyman Rosen
2003-06-06 1:24 ` James Rogers
2003-06-06 9:01 ` Simon Wright
2003-06-06 10:35 ` Preben Randhol
2003-06-05 17:51 ` Larry Kilgallen
2003-06-08 5:28 ` AG
2003-06-04 16:19 ` Larry Kilgallen
2003-06-04 21:45 ` Mike Silva
2003-06-08 3:56 ` AG
2003-06-08 4:14 ` Hyman Rosen
2003-06-08 4:46 ` AG
2003-06-08 4:59 ` Hyman Rosen
2003-06-08 5:11 ` AG
2003-06-08 5:14 ` Hyman Rosen
2003-06-08 10:09 ` Frank J. Lhota
2003-06-09 3:06 ` Wesley Groleau
2003-06-09 3:48 ` Hyman Rosen
2003-06-09 21:09 ` Warren W. Gay VE3WWG
2003-06-10 3:36 ` Wesley Groleau
2003-06-10 16:02 ` Warren W. Gay VE3WWG
2003-06-09 16:56 ` Warren W. Gay VE3WWG
2003-06-09 18:21 ` Hyman Rosen
2003-06-09 21:06 ` Warren W. Gay VE3WWG
2003-06-10 10:23 ` Preben Randhol
2003-06-12 21:58 ` Michael Bode
2003-06-03 2:44 ` Steve
2003-06-03 3:13 ` Wesley Groleau
2003-06-03 3:41 ` Hyman Rosen
2003-06-03 11:41 ` Preben Randhol
2003-06-03 13:30 ` Hyman Rosen
2003-06-03 13:46 ` Vinzent Hoefler
2003-06-03 14:30 ` Preben Randhol
2003-06-03 15:16 ` Vinzent Hoefler
2003-06-03 15:36 ` Preben Randhol
2003-06-03 14:28 ` Preben Randhol
2003-06-03 14:37 ` Hyman Rosen
2003-06-03 14:51 ` Preben Randhol
2003-06-03 15:03 ` Hyman Rosen
2003-06-03 18:12 ` Wesley Groleau
2003-06-08 5:46 ` AG
2003-06-08 6:30 ` Hyman Rosen
2003-06-08 8:24 ` AG
2003-06-08 9:43 ` Hyman Rosen
2003-06-09 3:03 ` Wesley Groleau
2003-06-03 15:05 ` John R. Strohm
2003-06-03 15:31 ` Hyman Rosen
2003-06-04 10:16 ` Ole-Hjalmar Kristensen
2003-06-03 17:21 ` Robert A Duff
2003-06-03 17:40 ` Preben Randhol
2003-06-03 18:20 ` Wesley Groleau
2003-06-03 19:16 ` Sergey Koshcheyev
2003-06-03 19:44 ` Robert A Duff
2003-06-04 2:05 ` James Rogers
2003-06-04 2:40 ` Wesley Groleau
2003-06-04 11:14 ` Preben Randhol
2003-06-04 6:21 ` Hyman Rosen
2003-06-04 13:46 ` Jim Rogers
2003-06-04 14:22 ` Hyman Rosen
2003-06-04 19:26 ` Jim Rogers
2003-06-04 20:00 ` Hyman Rosen [this message]
2003-06-04 20:24 ` David C. Hoos
2003-06-04 20:40 ` Hyman Rosen
2003-06-04 22:11 ` Wesley Groleau
2003-06-04 21:13 ` Simon Wright
2003-06-05 17:27 ` Stephen Leake
2003-06-04 13:54 ` Leif Roar Moldskred
2003-06-08 6:08 ` AG
2003-06-08 6:25 ` Hyman Rosen
2003-06-08 8:20 ` AG
2003-06-08 9:48 ` Hyman Rosen
2003-06-10 8:23 ` Leif Roar Moldskred
2003-06-10 14:11 ` Hyman Rosen
2003-06-10 14:58 ` Leif Roar Moldskred
2003-06-10 16:05 ` Hyman Rosen
2003-06-10 16:37 ` Preben Randhol
2003-06-10 17:16 ` Hyman Rosen
2003-06-10 17:28 ` Preben Randhol
2003-06-10 18:14 ` Hyman Rosen
[not found] ` <0egDa.45 <1055265377.116836@master.nyc.kbcfp.com>
2003-06-10 18:19 ` Matthew Woodcraft
2003-06-10 20:36 ` Hyman Rosen
2003-06-10 23:04 ` Matthew Woodcraft
2003-06-04 12:07 ` Larry Kilgallen
2003-06-08 4:22 ` AG
2003-06-08 4:41 ` Hyman Rosen
2003-06-08 4:58 ` AG
2003-06-08 5:00 ` Hyman Rosen
2003-06-03 8:38 ` Vinzent Hoefler
2003-06-03 18:26 ` Wesley Groleau
2003-06-03 9:53 ` Martin Dowie
2003-06-03 11:37 ` Larry Kilgallen
2003-06-08 1:21 ` AG
2003-06-08 3:21 ` Hyman Rosen
2003-06-02 10:56 ` no title Georg Bauhaus
2003-06-02 11:01 ` Bobby D. Bryant
2003-06-02 20:23 ` Gautier Write-only
2003-06-02 21:33 ` Luke A. Guest
-- strict thread matches above, loose matches on Subject: below --
2003-06-04 16:30 Case sensitivity (was Re: no title) Lionel.DRAGHI
2003-06-04 17:57 ` Hyman Rosen
2003-06-05 9:07 Lionel.DRAGHI
2003-06-05 14:13 ` Hyman Rosen
2003-06-05 15:39 ` Preben Randhol
2003-06-05 15:44 ` Larry Kilgallen
2003-06-05 15:49 ` Preben Randhol
2003-06-05 16:28 ` Sergey Koshcheyev
2003-06-05 17:14 ` Preben Randhol
2003-06-05 16:36 ` Hyman Rosen
2003-06-05 16:53 ` Larry Kilgallen
2003-06-05 17:15 ` Preben Randhol
2003-06-05 17:30 ` Wesley Groleau
2003-06-05 9:21 Lionel.DRAGHI
2003-06-05 14:14 ` Hyman Rosen
2003-06-05 17:34 ` Stephen Leake
2003-06-05 17:31 ` Stephen Leake
2003-06-05 19:31 ` Wesley Groleau
2003-06-10 11:14 Lionel.DRAGHI
2003-06-11 10:48 Lionel.DRAGHI
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox