From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Some questions about Ada.
Date: 1996/05/03
Date: 1996-05-03T00:00:00+00:00 [thread overview]
Message-ID: <Dqu2EA.DL@world.std.com> (raw)
In-Reply-To: Dqt9nA.o5n@undergrad.math.uwaterloo.ca
In article <Dqt9nA.o5n@undergrad.math.uwaterloo.ca>,
Carl Laurence Gonsalves <clgonsal@undergrad.math.uwaterloo.ca> wrote:
>I've heard about Ada 95. I wasn't able to find any books on it though, so I
>picked up a copy of "Programming in Ada" 3rd Ed. by J.G.P.Barnes. It
>doesn't cover Ada 95 (it's copyright date is '89).
Barnes has updated his book to cover Ada 95. There's also Norman
Cohen's book, and probably others.
>...I'll go and look on the
>web for stuff about Ada 95, probably tomorrow, actually.
The Reference Manual and the Rationale can be found at
sw-eng.falls-church.va.us in directory
public/adaic/docs/standard/95lrm_rat/v6.0.
>The
>varying capitalizations that result from different people going in and
>modifying the code results in a distracting mish-mash of capitalization
>styles.
Usually true, because most projects consist of a bunch of
individualistic "artists", who think that writing "end" the same way as
everybody else will cramp their style. :-(
For a counter-example, look at the GNAT sources. Stylistically, they
look like they were all written by the same person. Not just case
conventions, but all kinds of other stuff.
>If it was intended to prevent variables that look similar except for case
>then that's what should've been done: make the language case-sensitive, but
>don't allow the creation of anything that has the same case-insensitive
>name. ie: if I create something called "foo" then I can't create something
>called "Foo", nor can I access something called "foo".
In a language with overloading, you can declare both "foo" and "foo".
If *that*'s not confusing, then how can "Foo" and "foo" be confusing?
In a different article I posted a variation on your idea above, which
IMHO fits in better with the idea of overloading.
I think Smalltalk requires that class names start with a capital letter,
and method names start with a lower-case letter. Clearly, language-wide
conventions are better than project-wide conventions.
>But I think that isn't a very good restriction. A very common convention in
>C and in other case sensitive languages (like Modula-3) is to give a type
>an upper-case name, and a local general purpose instance of that type has a
>lower-case name. ...
Shrug. Some folks like that, some folks find it to be an abomination.
I imagine one can get used to either way.
>... I imagine Ada programs are filled with variables called
>"myWindow" or "theTable".
Yes, they are. Well, actually, it's usually My_Window and The_Table.
Alternatively, some programs are filled with types called Window_Type
and Table_Type, so the variables can be called Window and Table.
Anyway, who cares? This issue is hardly the most important one, when
choosing a programming language.
- Bob
next prev parent reply other threads:[~1996-05-03 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 ` Robert A Duff [this message]
1996-05-03 0:00 ` Dave Jones
1996-05-03 0:00 ` Adam Beneschan
1996-05-04 0:00 ` Carl Laurence Gonsalves
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 ` 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-04 0:00 ` Kevin D. Heatwole
1996-05-06 0:00 ` Norman H. Cohen
1996-05-06 0:00 ` Robert Dewar
1996-05-03 0:00 ` Michael Feldman
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