comp.lang.ada
 help / color / mirror / Atom feed
From: seas.gwu.edu!mfeldman@uunet.uu.net  (Michael Feldman)
Subject: Re: Ada Operators in 9x
Date: 25 Jun 93 21:12:11 GMT	[thread overview]
Message-ID: <1993Jun25.211211.231@seas.gwu.edu> (raw)

In article <9306241414.AA01973@fuentez.com> hildjj@JUPITER.FUENTEZ.COM (Joe Hil
debrand) writes:
>
>> Whoa. Back up. Are you saying that case sensitivity is a good thing?
>> Am I missing liberally-placed smileys somewhere?
>
>It is nice to be able to sling your case around as you please, but if
>you are trying for a consistent coding style across several (or hundreds)
>of programmers, that style would be a lot easier to enforce if the 
>compiler could catch the case deviations.
>
But how would that happen if the language were case-sensitive? My case
(no pun) in point is Modula-2, in which the reserved words MUST be in
upper-case, which is no problem really, but additionally you can declare
  q: Integer;
  Q: Integer;
in the same block. Suppose you _meant_ to write

  q := 35;

but instead hit the shift key accidentally and wrote

  Q := 35;

The same thing can happen in C, which is, I presume, why C programmers
use lower case almost exclusively.

My single-keystroke error above would NOT be caught if the language were
case-sensitive, but of course with Ada (like Pascal), the compiler
would nail you for a doubly declated variable. I like this. I HATE
single-keystroke errors that have big semantic effects, because I'm
as really liusy typist. :-)

Enforcing a lexical style is IMHO a good job for a nice style-checker tool,
or even a prettyprinter that can do it all for you. Some of these things
exist; if they are not powerful enough for your project, scream at your
vendor - that's what the market is (supposed to be) for!

The case-sensitivity issue is purely academic anyhow - Ada is what it is,
and Ada9X won't change this, because it would be REALLY damaging to
upward compatibility.

Cheers -

Mike Feldman
------------------------------------------------------------------------
Michael B. Feldman -  co-chair, SIGAda Education Committee
Professor, Dept. of Electrical Engineering and Computer Science
The George Washington University -  Washington, DC 20052 USA
202-994-5253 (voice) - 202-994-5296 (fax) - mfeldman@seas.gwu.edu (Internet)
"Pork is what those other guys get from the Government."
------------------------------------------------------------------------

             reply	other threads:[~1993-06-25 21:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-25 21:12 Michael Feldman [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-07-09 16:51 Ada Operators in 9x Robert I. Eachus
1993-07-08 22:18 Laurence VanDolsen
1993-07-02 18:14 munck
1993-07-01 21:43 Dave Bashford
1993-07-01 15:39 Robert I. Eachus
1993-07-01 12:54 agate!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.ed
1993-07-01 10:28 agate!howland.reston.ans.net!darwin.sura.net!dtix.dt.navy.mil!relay-wo!re
1993-06-30 23:06 Robert I. Eachus
1993-06-30 17:41 agate!howland.reston.ans.net!darwin.sura.net!dtix.dt.navy.mil!relay-wo!re
1993-06-30 16:23 cis.ohio-state.edu!math.ohio-state.edu!darwin.sura.net!source.asset.com!v
1993-06-30 15:24 Charles H. Sampson
1993-06-28 23:37 Mark A Biggar
1993-06-28  7:13 ghost.dsi.unimi.it!univ-lyon1.fr!scsing.switch.ch!epflnews!disuns2.epfl.c
1993-06-27  8:26 Stephen J Bevan
1993-06-27  1:03 Kenneth Anderson
1993-06-26 15:43 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!agate!doc.i
1993-06-26 15:19 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!agate!doc.i
1993-06-25 21:03 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.
1993-06-25 20:56 Rahul Dhesi
1993-06-25 20:44 David Emery
1993-06-24 14:14 Joe Hildebrand
1993-06-22 13:01 cis.ohio-state.edu!math.ohio-state.edu!darwin.sura.net!cs.ucf.edu!longwoo
1993-06-21 22:14 Mike Berman
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox