comp.lang.ada
 help / color / mirror / Atom feed
From: clgonsal@undergrad.math.uwaterloo.ca (Carl Laurence Gonsalves)
Subject: Re: Some questions about Ada.
Date: 1996/05/04
Date: 1996-05-04T00:00:00+00:00	[thread overview]
Message-ID: <Dqw5sv.9p2@undergrad.math.uwaterloo.ca> (raw)
In-Reply-To: 4me37a$ipl@krusty.irvine.com


In article <4me37a$ipl@krusty.irvine.com>,
Adam Beneschan <adam@irvine.com> wrote:
>clgonsal@undergrad.math.uwaterloo.ca (Carl Laurence Gonsalves) writes:
>>
>>I'v also had to maintain Pascal programs where "end" was capitalized in
>>three different ways, at random. Case insensitivity makes the code harder
>>to read and harder to maintain, because one can be misled into thinking
>>that two different capitalizations of the same thing are distinct. . . .
>
>I don't understand this at all.  As far as I can see, about the only
>way you can be misled into thinking two different capitalizations mean
>different things is if you're used to programming only in C/C++ (or
>Modula).  Expecting different capitalizations to mean different things
>doesn't come from experience with most other well-known programming
>languages, since they don't care about case.  And it certainly can't
>come from any of our other learning; if I see a word capitalized at
>the beginning of a sentence, I am not misled into thinking its meaning
>is different from an entirely lower-case word.

In mathematics "x" and "X" are often used to represent two distinct
objects.

And even if one wouldn't be fooled into thinking "theodolite" is different
from "TheOdoLite", it's still very distracting having to mentally "convert"
everything to the same case. It's much more obvious that "foobar" and
"foobar"  are the same.

If the intent was really to prevent two distinct things from having names
that varied only by case, then there are better alternatives that were
pointed out by myself and someone else.

-- 
        Carl Laurence Gonsalves - clgonsal@undergrad.math.uwaterloo.ca
                   Computer Science, University of Waterloo
               http://www.undergrad.math.uwaterloo.ca/~clgonsal/
                   http://www.csclub.uwaterloo.ca/~clgonsal/




  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 ` Dave Jones
1996-05-03  0:00   ` Carl Laurence Gonsalves
1996-05-03  0:00     ` Michael Feldman
1996-05-03  0:00     ` Adam Beneschan
1996-05-04  0:00       ` Carl Laurence Gonsalves [this message]
1996-05-04  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-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-05  0:00                 ` Robert Dewar
1996-05-06  0:00                 ` Christopher J. Henrich
1996-05-04  0:00         ` Kevin D. Heatwole
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-06  0:00         ` Norman H. Cohen
1996-05-06  0:00           ` Robert Dewar
1996-05-03  0:00     ` Dave Jones
1996-05-03  0:00     ` Robert A Duff
1996-05-06  0:00     ` Laurent Guerby
1996-05-03  0:00   ` Darren C Davenport
1996-05-03  0:00   ` Spencer Allain
1996-05-06  0:00   ` Matthew M. Lih
1996-05-09  0:00     ` Dave Jones
1996-05-02  0:00 ` Robert A Duff
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