From: heatwole@erols.com (Kevin D. Heatwole)
Subject: Re: Some questions about Ada.
Date: 1996/05/04
Date: 1996-05-04T00:00:00+00:00 [thread overview]
Message-ID: <heatwole-0405961910480001@as29s17.erols.com> (raw)
In-Reply-To: dewar.831213757@schonberg
In article <dewar.831213757@schonberg>, dewar@cs.nyu.edu (Robert Dewar) wrote:
>
> (talking about confusion arising from random casing)
>
> I see it! I think it is terrible Ada style to be inconsistent in casing
> keywords or identifiers. In fact I think it is nice if the compiler has
> an option to prevent such sloppiness (when we compile in internal GNAT
> mode, consistent casing is enforced).
I agree that consistent formatting is nice, but I have been programming in
Ada since 1983 (and have debugged a lot of problems in that time) and I
have never come across an instance where inconsistent casing of keywords
or identifiers has caused a problem in Ada (I have seen this happen a couple
of times in C and assembly).
Of course, that isn't to say it can't cause a problem, but I think it is
rare (e.g., Use clauses sometimes make visible very similar names). Now,
I have seen some problems due to inconsistent indentation (which is closely
related to case). I have also seen some problems with short variable names
that use similar letters (like i and j).
I generally like a compilation unit to be consistently formatted, but I
don't mind if separate compilation units use different formatting/casing.
Kevin Heatwole
OC Systems, Inc.
next prev parent reply other threads:[~1996-05-04 0:00 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-02 0:00 Some questions about Ada Carl Laurence Gonsalves
1996-05-02 0:00 ` Robert A Duff
1996-05-02 0:00 ` Dave Jones
1996-05-03 0:00 ` Spencer Allain
1996-05-03 0:00 ` Darren C Davenport
1996-05-03 0:00 ` Carl Laurence Gonsalves
1996-05-03 0:00 ` Adam Beneschan
1996-05-04 0:00 ` Robert Dewar
1996-05-04 0:00 ` Richard Kenner
1996-05-04 0:00 ` Robert Dewar
1996-05-05 0:00 ` Richard Kenner
1996-05-05 0:00 ` Robert Dewar
1996-05-04 0:00 ` Kevin D. Heatwole [this message]
1996-05-04 0:00 ` Robert A Duff
1996-05-04 0:00 ` Robert Dewar
1996-05-05 0:00 ` Robert A Duff
1996-05-05 0:00 ` Arthur Evans Jr
1996-05-05 0:00 ` Robert Dewar
1996-05-05 0:00 ` Robert Dewar
1996-05-06 0:00 ` Norman H. Cohen
1996-05-06 0:00 ` David Weller
1996-05-07 0:00 ` Robert Dewar
1996-05-12 0:00 ` Geert Bosch
1996-05-06 0:00 ` Christopher J. Henrich
1996-05-06 0:00 ` Norman H. Cohen
1996-05-06 0:00 ` Robert Dewar
1996-05-04 0:00 ` Carl Laurence Gonsalves
1996-05-03 0:00 ` Dave Jones
1996-05-03 0:00 ` Michael Feldman
1996-05-03 0:00 ` Robert A Duff
1996-05-06 0:00 ` Laurent Guerby
1996-05-06 0:00 ` Matthew M. Lih
1996-05-09 0:00 ` Dave Jones
1996-05-03 0:00 ` Laurent Guerby
1996-05-03 0:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox