From: rdeininger@mindspring.com (Robert Deininger)
Subject: Re: Drop C/C++ better sooner than later
Date: Wed, 28 Feb 2001 09:58:09 -0500 [thread overview]
Message-ID: <rdeininger-2802010958090001@user-2ive673.dialup.mindspring.com> (raw)
In-Reply-To: 97j1jq$g00$1@info.cs.uofs.edu
In article <97j1jq$g00$1@info.cs.uofs.edu>, bill@cs.scranton.edu wrote:
> In article <cCYm6.1296$CP4.299029@paloalto-snr1.gtei.net>,
> "Rick Cadruvi" <rick@rdperf.com> writes:
> Even as far back as Fortran I learned as a programmer that implicit
> anything was a bad idea. Never assume, always code explicitly.
Sounds like a bit of Ada advocacy. :-)
> |>
> |> 3. BREAK. Break should be allowed from ALL Begin/End ({})
> |> constructs (including IF ELSE). You should also be able to
> |> BREAK # where # is the number of Begin/End blocks you want
> |> to break out of.
>
> Sounds like you want GOTO back. I thought Dyjkstra convinced everyone
> that was a bad idea?? ;-)
In no way did Dyjkstra convince everybody.
There are times when GOTO is just what's needed. The example I see most
often is coding a state machine. For an eloquent defense of GOTO, look in
the comp.lang.ada archives for Robert Dewer's posts on the topic.
> Well, you need two symbols for "equals", comparison and assignment.
> That is what the "=" means. Anything else would be non-intuitve.
> Question: What does ":" have to do with equality?? And yes, when
> we used to use Pascal as our beginning language here one of the most
> common coding errors was leaving out those pesky ":". Using double
> "=" for comparison is very intuitve when you consider that every
> other comparison that involves equality consists of a digraph with
> at least one "=". (ie. ">=", "<=", "!=")
Using ":=" for assignment had quite a lot of precident at the time C was
developed. Starting a new convention was unnecessary. Way too late to
change it now.
> |>
> |> My ideal language would probably be mostly a combination of BLISS and C.
>
> There is no such thing as "the ideal language". Ada was an attempt to
> create (by committee no less!) a language that could be used for everything.
> The result is a bloated monster that requires so much in resources that
> it was never practical for small machines (and even some large ones like
> PDP-11's). Most languages were created to fill a discovered need at the
> time of their creation.
Though you have supported the use of Ada in a classroom, you're convincing
me you hardly know it yourself. Ada was IN NO WAY intended to fit all
problem spaces. Two of the big design demands were for embedded
programming, and for a language that scales well to very large programs.
Your remarks about "bloated monster" and "not practical for small
machines" are nonsense. A number of languages are significantly bigger
than Ada. And it has been implemented on a number of small systems. Some
of the first compilers _were_ dogs, however.
Ada _is_ a lot bigger than C, but it does much more. From the
programmer's point of view, you don't have to learn parts you don't need.
There is a fairly concise C-like subset (with somewhat fuzzy boundaries)
for example. Of course the compiler implementor has to deal with the
whole language. Ada is also more specific than C -- the implementor has
much less discretion in how a feature must behave.
> |>
> |> One thing I don't want is a language to get in the way. A lot of newer
> |> languages are
> |> designed to prevent programmers for doing things to keep them from making
> |> mistakes.
> |> I understand this logic, but what you have is an effort to over compensate
> |> because
> |> programmers were never taught to program well and they write BAD code.
I don't think this is quite the right description of Ada. It is designed
to let the compiler catch a lot of mistakes, so they never get into the
running program. This may have a side effect of making programmers a bit
more careful, thus reducing mistakes.
> |> In order for a language to be useable, they invariably provide some
> |> "backdoor"
> |> that allows you to do the things you really want to do. As a result, those
> |> "backdoors" get abused. Along comes someone else who says they have to
> |> do something new that removes that "backdoor". As more code is written in
> |> the
> |> new language, it becomes clear that new "backdoors" have to be implemented
> |> because the language is preventing complex things from being done or at
> |> least
> |> is making them so difficult that they take too long. This was always my
> |> problem
> |> with ADA.
>
> Now I'm confused. What you say above is in complete agreement with what
> I have said, as well. Especially in the case of Ada.
Well, he can't even spell Ada, so maybe his complaints are second hand? :-)
The backdoors in Ada aren't obsure or hard to understand. There was an
effort to make use of backdoors (unchecked deallocation, unchecked
conversion ...) very explicit and obvious to the reader. And you don't
need such things very often in Ada. Most programs never see them. I
think they are most often abused by people trying to write C code using
Ada syntax. That does lead to horrible code in a hurry.
It's also not fair to say that more "backdoors" keep getting added to
Ada. It has been quite static in this regard.
Some of the complaints above apply much more to Pascal than to Ada.
Pascal really was too constrained for many purposes, and had some subtle
back doors. Ada is a descendant of Pascal, but it extends Pascal for
useability, and closes some backdoors.
>
> |> Time to implement a project is VERY important. It's one of the
> |> BAD
> |> things with C/C++ in terms of applications development.
>
> This I don't agree with. In most cases, the actual coding is the smallest
> part of the project. (at least well designed projects)
Agreed.
> It takes no longer
> for an experienced C programmer to code a task in C than it would take an
> experienced Ada programmer to do it in Ada. And believe it or not, regardless
> of the language used, programmers of the same level of experience will make
> an equivalent number of mistakes. It isn't the language that makes the
> mistakes.
If you spend time reading the Ada literature (or Eiffel, probably others),
you will find that this has been measured, and refuted. C really is more
error prone. Briefly, you are probably right about speed of initial
coding. But not about error rates.
Don't really want to start a language war. I hope it's not too late.
--
Robert Deininger
rdeininger@mindspring.com
next prev parent reply other threads:[~2001-02-28 14:58 UTC|newest]
Thread overview: 168+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OF5876F951.ACBD5F93-ON032569FC.003E241B@ep-bc.petrobras.com.br>
[not found] ` <87n1baae6s.fsf@prep.synonet.com>
2001-02-25 17:38 ` So what Are we meant to use on the 'desktop' Terry C. Shannon
2001-02-25 19:23 ` David Mathog
2001-02-26 1:18 ` Christof Brass
2001-02-26 1:59 ` Bill Todd
2001-02-26 12:49 ` Larry Kilgallen
2001-02-26 19:09 ` Rick Cadruvi
2001-02-26 20:47 ` Larry Kilgallen
2001-02-26 21:04 ` Bill Gunshannon
2001-02-27 0:07 ` Christof Brass
2001-02-27 1:00 ` Bill Todd
2001-02-27 1:26 ` Drop C/C++ better sooner than later Christof Brass
2001-02-27 2:47 ` Rick Cadruvi
2001-02-27 3:59 ` JF Mezei
[not found] ` <XyEm6.896$be1.355692@paloalto-snr1.gtei.neDistribution: world <wrCvgGxaSLv9@eisner.encompasserve.org>
2001-02-27 21:13 ` Rick Cadruvi
2001-02-27 22:34 ` Christof Brass
2001-02-28 1:36 ` Rick Cadruvi
2001-02-28 13:48 ` LJEB
2001-02-28 16:28 ` Rick Cadruvi
2001-03-01 11:54 ` LJEB
2001-02-28 14:22 ` Bill Gunshannon
2001-02-28 14:33 ` John Reagan
2001-02-28 15:19 ` Jan Vorbrueggen
2001-02-28 16:42 ` Rick Cadruvi
2001-02-28 17:45 ` John Reagan
2001-02-28 14:58 ` Robert Deininger [this message]
2001-02-28 15:29 ` Jan Vorbrueggen
2001-02-28 16:55 ` Bill Gunshannon
2001-02-28 18:05 ` Bob Koehler
2001-03-01 9:07 ` Jan Vorbrueggen
2001-02-28 18:34 ` Larry Kilgallen
2001-02-28 23:10 ` Rick Cadruvi
2001-02-28 19:52 ` Robert Deininger
2001-03-01 14:21 ` Bob Koehler
[not found] ` <KForX+5U$4bOrganization: Encompasserve <ZDsZwRGKoAEm@eisner.encompasserve.org>
2001-03-01 15:16 ` Jan Vorbrueggen
2001-03-01 21:58 ` JF Mezei
2001-03-02 10:26 ` Alan Greig
2001-03-05 10:20 ` Jan Vorbrueggen
2001-02-28 20:19 ` JF Mezei
2001-03-01 13:52 ` Bill Gunshannon
2001-03-01 15:13 ` Jan Vorbrueggen
2001-03-01 16:05 ` Bill Gunshannon
2001-03-01 17:08 ` Robert Deininger
2001-03-01 17:47 ` Rick Cadruvi
2001-03-01 20:36 ` Paul Repacholi
2001-03-01 23:11 ` Christof Brass
2001-03-03 14:54 ` Jan Vorbrueggen
2001-03-06 19:24 ` Bill Gunshannon
2001-03-06 21:53 ` Larry Kilgallen
2001-03-06 22:29 ` David J. Dachtera
2001-03-07 0:33 ` Brian Schenkenberger, VAXman-
2001-03-07 2:53 ` Christof Brass
2001-03-07 3:27 ` Robert Deininger
2001-03-07 14:33 ` Bill Gunshannon
2001-03-07 14:21 ` Jan Vorbrueggen
2001-03-13 7:49 ` Fred Zwarts
2001-03-13 16:12 ` John Reagan
2001-03-01 16:58 ` Robert Deininger
2001-03-01 21:45 ` JF Mezei
2001-03-01 3:40 ` Christof Brass
2001-03-01 5:52 ` Robert Deininger
2001-03-01 3:33 ` Christof Brass
2001-03-01 6:03 ` JF Mezei
2001-03-01 17:11 ` Rick Cadruvi
2001-03-01 23:28 ` Christof Brass
2001-03-01 23:47 ` Rick Cadruvi
2001-03-02 10:45 ` Paul Repacholi
2001-03-02 18:52 ` Rick Cadruvi
2001-03-03 1:42 ` Christof Brass
2001-03-02 1:11 ` Brian Schenkenberger, VAXman-
2001-03-02 5:06 ` Rick Cadruvi
2001-03-02 10:32 ` Brian Schenkenberger, VAXman-
2001-03-06 20:47 ` bob.marcan
2001-02-28 15:03 ` Per Schr�der
2001-02-28 16:50 ` Rick Cadruvi
2001-02-28 17:48 ` Bob Koehler
2001-02-28 18:26 ` Bill Gunshannon
2001-03-01 13:41 ` Bob Koehler
2001-02-28 18:22 ` Larry Kilgallen
2001-03-01 1:39 ` Christof Brass
2001-03-01 9:38 ` Jan Vorbrueggen
2001-03-01 17:20 ` Rick Cadruvi
2001-03-01 23:38 ` Christof Brass
2001-02-28 12:39 ` Bill Gunshannon
2001-02-27 23:00 ` Larry Kilgallen
2001-02-28 0:12 ` Brian Schenkenberger, VAXman-
2001-02-28 13:56 ` Bill Gunshannon
2001-02-28 15:11 ` Jan Vorbrueggen
2001-02-28 16:31 ` Rick Cadruvi
2001-02-28 2:14 ` Larry Kilgallen
2001-02-28 2:46 ` Bill Todd
2001-03-01 2:12 ` Christof Brass
[not found] ` <XyEm6.896$be1.355692@paloalto-snr1.gtei.neDistribution: world <5ABc4wgf5wcs@eisner.encompasserve.org>
2001-02-28 4:46 ` Rick Cadruvi
2001-02-28 6:28 ` Robert Deininger
2001-02-28 7:16 ` JF Mezei
2001-02-28 16:05 ` Rick Cadruvi
2001-03-01 2:46 ` Christof Brass
2001-03-01 2:25 ` Christof Brass
2001-02-28 7:08 ` JF Mezei
2001-02-28 8:52 ` Jan Vorbrueggen
2001-03-01 2:47 ` Christof Brass
2001-03-01 6:37 ` Nikita V. Belenki
2001-03-01 23:40 ` Christof Brass
2001-03-03 10:18 ` Nikita V. Belenki
2001-03-03 10:40 ` Christof Brass
2001-03-12 3:29 ` Mark Garrett
2001-03-12 4:05 ` Bob Willard
2001-03-12 8:02 ` Paul Repacholi
2001-03-15 14:13 ` Alan Greig
2001-02-28 13:39 ` Bob Koehler
2001-02-28 16:11 ` Rick Cadruvi
2001-02-28 20:00 ` JF Mezei
2001-03-01 9:16 ` Jan Vorbrueggen
2001-03-01 23:42 ` Christof Brass
2001-03-01 13:48 ` Bill Gunshannon
2001-03-01 23:18 ` John Santos
2001-02-28 18:11 ` Larry Kilgallen
2001-02-28 20:01 ` Robert Deininger
2001-03-01 2:18 ` Christof Brass
[not found] ` <9hjmlkwyghte@eisner.encompasserve.org>
2001-02-28 17:59 ` Bob Koehler
2001-02-28 18:31 ` Bill Gunshannon
2001-03-01 15:40 ` Bob Koehler
2001-03-01 18:10 ` Larry Kilgallen
[not found] ` <97Organization: Encompasserve <Y$aqbQdRtYFw@eisner.encompasserve.org>
2001-03-01 17:38 ` Rick Cadruvi
2001-03-01 18:53 ` Nikita V. Belenki
2001-03-02 13:13 ` Bob Koehler
2001-03-02 13:24 ` Bob Koehler
2001-02-28 23:08 ` Larry Kilgallen
2001-03-01 13:50 ` Bob Koehler
2001-03-01 13:54 ` Bob Koehler
2001-03-01 15:12 ` Jan Vorbrueggen
2001-02-28 8:46 ` Jan Vorbrueggen
2001-03-01 1:56 ` Christof Brass
[not found] ` <XyEm6.896$be1.355692@paloalto-snr1.gtei.neDistribution: world <009F8479.B6EC89DC@SendSpamHere.ORG>
2001-03-01 1:46 ` Christof Brass
2001-02-26 12:17 ` So what Are we meant to use on the 'desktop' Alan Greig
2001-02-25 19:51 ` VMS wanted list. Was: " Paul Repacholi
2001-02-25 20:45 ` VMS wanted list Terry C. Shannon
2001-02-25 22:44 ` Howard S Shubs
2001-02-26 0:37 ` Terry C. Shannon
2001-02-26 1:19 ` Eric Smith
2001-02-26 4:13 ` Howard S Shubs
2001-02-26 5:27 ` Terry C. Shannon
2001-02-26 6:38 ` Howard S Shubs
2001-02-27 0:12 ` Christof Brass
2001-02-27 3:22 ` Terry C. Shannon
2001-02-27 22:37 ` Christof Brass
2001-02-27 11:15 ` Brian Schenkenberger, VAXman-
2001-02-27 22:37 ` Christof Brass
2001-02-28 2:12 ` Bob Kaplow
[not found] ` <3A9AF0DB.Organization: What, me, organized? <rUslzcAE$7$5@eisner.encompasserve.org>
2001-03-12 2:49 ` Mark Garrett
2001-03-12 13:52 ` Bob Kaplow
2001-02-26 15:35 ` Tim Llewellyn
2001-02-26 23:51 ` Terry C. Shannon
2001-02-27 0:15 ` Christof Brass
2001-02-26 11:27 ` Brian Schenkenberger, VAXman-
2001-02-27 21:43 ` Terry C Shannon
2001-02-27 22:07 ` Brian Schenkenberger, VAXman-
2001-02-26 19:16 ` Rick Cadruvi
2001-02-26 0:48 ` Christof Brass
2001-02-26 12:43 ` Larry Kilgallen
2001-02-26 13:02 ` Terry C. Shannon
2001-02-26 15:48 ` Jan Vorbrueggen
2001-02-26 16:47 ` VMS wanted list. Was: So what Are we meant to use on the 'desktop' Hoff Hoffman
2001-02-26 21:01 ` Bill Gunshannon
2001-02-27 0:19 ` Christof Brass
[not found] ` <97giah$jo3@gap.cco.caltech.edu>
2001-02-27 21:19 ` Rick Cadruvi
2001-02-27 22:44 ` Christof Brass
2001-02-28 16:37 ` VMS wanted list. Take II Paul Repacholi
2001-03-01 4:17 ` Christof Brass
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox