comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Why not combine Ada and C++?
Date: Mon, 15 Oct 2001 17:27:54 -0400
Date: 2001-10-15T21:27:55+00:00	[thread overview]
Message-ID: <9qfkcr$8kc$1@nh.pace.co.uk> (raw)
In-Reply-To: 9qfg4v02t20@drn.newsguy.com

Similar cases have been given here before and been vigorously debated. I
personally would not program this way because of the easy misreading or
mistyping of "Car" vs "car" - and that's (one of the reasons) why Ada
doesn't do it that way. It is also just a naming convention that might not
get adhered to and might cause problems switching from one app to another or
one programmer's code to another. (Yes, I favor adherence to coding
conventions but they are difficult to enforce.) In a sense, it is
fundamentally no different than "Car" vs "Car_Type" or some similar
convention, so generally speaking, you can get the same effect with a
different style. (You'll find about as much religious fervor over the pro
_Type vs anti _Type adherents! :-)

As I said elsewhere, people are going to have preferences and there will be
good reasons on either side supporting what people prefer. Ada had to decide
to be either case sensitive or insensitive and either way it was going to
displease some segment of the population. It opted for insensitivity because
it was generally viewed to be the safer alternative - for a language heavily
concerned with avoiding errors. You give something up and you gain
something. At least it wasn't done for no reason at all and I think any
reasonable programmer can learn to work with it (and might discover that it
*does* avoid some collection of errors.)

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Robert*@" <Robert_member@newsguy.com> wrote in message
news:9qfg4v02t20@drn.newsguy.com...
>
> in some cases, case sensitivity can be very good.
>
> for example, in Java, the convention is to use lower case first letter for
> a name of a method. and Upper case first letter for a Class and interface
> name, lower case all letters for a package name.
>
> This is very usefull, becuase if you'r reading code, and you see an Upper
case
> first letter on an identifier, then you know without having to look aroud,
that
> the name represent a Class name. and the same for method names.
>
> This means you can write
>
>   Car car= new Car("buick");
>
> and it is clear as a bird which is the type and which is the variable.
> (In Ada, you have to add "_Type" to the type to try to distinguish
things).
>
> This is a convention, not enforced by the language, but it is so strong,
that
> any java programmer cought not doing it, will be immeadiatly taken out and
> shot in clear day light without a question being asked :)
>
> Myself, I prefer case sensitive. But it is not a very important feature,
there
> are more important things to look at first. But if I am designing a new
> lang, i'd make case sensitive.
>





  reply	other threads:[~2001-10-15 21:27 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-15  8:21 Why not combine Ada and C++? Mike Meng
2001-10-15 10:29 ` Larry Kilgallen
2001-10-15 10:36 ` Robert*
2001-10-15 11:15 ` Stephen Cole
2001-10-15 12:06   ` The caselessness is one of the things I like best! Petter Fryklund
2001-10-15 12:21     ` Gerhard Häring
2001-10-15 12:48       ` UPPERCASE is the typgraphical equivalent of shouting ;-) Petter Fryklund
2001-10-15 12:54       ` The caselessness is one of the things I like best! James Rogers
2001-10-15 13:11       ` Larry Kilgallen
2001-10-15 15:12         ` Arthur Evans Jr
2001-10-15 16:00           ` Larry Kilgallen
2001-10-18 19:48             ` Simon Wright
2001-10-18 23:35               ` Larry Kilgallen
2001-10-16  8:48           ` John English
2001-10-16 13:11             ` James Rogers
2001-10-16 18:10               ` tmoran
2001-10-17  8:53                 ` Philip Anderson
2001-10-17 10:57                   ` Larry Kilgallen
2001-10-19 14:52               ` john mann
2001-10-15 15:13       ` Marin David Condic
2001-10-15 17:00       ` tmoran
2001-10-15 17:29         ` Gerhard Häring
2001-10-15 17:38           ` Larry Kilgallen
2001-10-15 18:01             ` Gerhard Häring
2001-10-15 19:04               ` David Starner
2001-10-15 18:15           ` David Starner
2001-10-15 17:35         ` Marin David Condic
2001-10-15 18:18           ` Pascal Obry
2001-10-15 18:57             ` Marin David Condic
2001-10-15 22:46           ` Jeffrey Carter
2001-10-16 13:32             ` Ted Dennison
2001-10-22  2:10             ` David Thompson
2001-10-15 13:03     ` Alfred Hilscher
2001-10-22 20:27     ` Kenneth Almquist
2001-10-15 14:39   ` Why not combine Ada and C++? Marin David Condic
2001-10-15 16:17     ` Alfred Hilscher
2001-10-15 16:35       ` Marin David Condic
2001-10-15 20:15         ` Robert*
2001-10-15 21:27           ` Marin David Condic [this message]
2001-10-15 22:50           ` Jeffrey Carter
2001-10-18 19:53             ` Simon Wright
2001-10-21  5:54               ` AG
2001-10-24 14:48     ` A UNISYS story Petter Fryklund
2001-10-24 15:03       ` Ted Dennison
2001-10-25  7:37         ` Petter Fryklund
2001-10-15 17:41   ` Why not combine Ada and C++? Stephen Cole
2001-10-15 18:27     ` tmoran
2001-10-15 20:24       ` Wes Groleau
2001-10-15 20:03     ` Wes Groleau
2001-10-15 18:42   ` Modern languages are case sensitive? Jeffrey Carter
2001-10-15 19:20     ` Larry Kilgallen
2001-10-15 22:54       ` Jeffrey Carter
2001-10-16 11:21         ` Dmitry Kazakov
2001-10-16 11:42     ` Robert Dewar
2001-10-16 13:16       ` Dale Stanbrough
2001-10-16 23:43         ` David Botton
2001-10-17  1:42           ` Larry Kilgallen
2001-10-16 14:36       ` Arthur Evans Jr
2001-10-16 14:50       ` Chris Morgan
2001-10-16 15:18       ` Florian Weimer
2001-10-16 15:47         ` Wes Groleau
2001-10-16 16:48           ` Florian Weimer
2001-10-16 17:12         ` David Starner
2001-10-16 20:32           ` Florian Weimer
2001-10-16 21:37             ` David Starner
2001-10-17  8:39               ` Florian Weimer
2001-10-18  0:00     ` Will
2001-10-18  2:12       ` Larry Kilgallen
2001-10-18  2:32         ` Darren New
2001-10-18 11:32           ` Larry Kilgallen
2001-10-15 19:47   ` Why not combine Ada and C++? Wes Groleau
2001-10-23  5:39     ` Hyman Rosen
2001-10-23  6:11       ` Richard Riehle
2001-10-15 19:28 ` Baugereau
2001-10-15 20:05   ` Ted Dennison
2001-10-16  7:38     ` Martin Dowie
2001-10-16 11:44       ` Pascal Obry
     [not found] ` <01c155a0$7dd31b80$1b7af2c3@akzvbymr>
2001-10-15 20:02   ` Ted Dennison
2001-10-15 20:55   ` Adrian Knoth
2001-10-15 22:15   ` Eric Merritt
2001-10-15 22:42   ` tmoran
     [not found]     ` <01c15665$dc2e6c00$9b29e8d4@akzvbymr>
2001-10-16 17:48       ` Ted Dennison
2001-10-16 18:04       ` Larry Kilgallen
2001-10-16 23:01         ` tmoran
2001-10-16 18:51       ` Marin David Condic
  -- strict thread matches above, loose matches on Subject: below --
2001-10-23 22:03 Beard, Frank
2001-10-23 23:13 ` Larry Kilgallen
2001-10-24  0:02 Beard, Frank
replies disabled

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