comp.lang.ada
 help / color / mirror / Atom feed
From: kassover@jupiter.crd.ge.com (David Kassover)
Subject: Re: if UNIX then USE_C ?? (was: Reasons for drop)
Date: 26 Feb 90 18:28:16 GMT	[thread overview]
Message-ID: <5563@crdgw1.crd.ge.com> (raw)
In-Reply-To: 204@puma.ge.com

In article <204@puma.ge.com> jnixon@andrew.ATL.GE.COM (John F Nixon) writes:
>Sorry, you must be thinking of FORTRAN (e.g., DO 100 I = 1.10), not C.
>If c.l.a is going to be comparing languages, let's get them right.
>
No need to apologize, I *was* thinking of FORTRAN, specifically
that example, since we discussed it in particular.
 
But it is possible to make single character mistakes in C.
Just as bad, you can make single word mistakes in C, since there
are cases where things like semicolons and breaks are optional.

(Unless I misunderstand, or those options have been eliminated
since I read K&R.  If so, I apologise)

Or even worse, I think, is the use of {} for many different kinds
of block statements.  In Ada I end a loop with end loop;  I end
an if with end if;
 
In C, both of these things are delimited by {}.  Can anyone out
there honestly say he's never got his braces tangled?  8-)
(That's a pun, by the way)

FORTRAN is even worse:
 
	DO 100 I=1,10
	DO 100 J=1,10
	   .
	   .
	   .
100	CONTINUE
	   .
	   .
	   .
	GOTO 100

At least VAX FORTRAN provides an ENDDO and a DO WHILE

  reply	other threads:[~1990-02-26 18:28 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-02-20 16:13 Reasons for dropping Ada Ted Holden
1990-02-20 21:04 ` Richard S D'Ippolito
1990-02-20 23:03   ` Reasons for keeping Ada David Kassover
1990-02-21  0:40     ` Clement Pellerin
1990-02-21 19:02   ` Reasons for dropping Ada Loren Louis Hart
1990-02-22 16:07     ` Mike Coffin
1990-02-22 17:01       ` if UNIX then USE_C ?? (was: Reasons for drop) Dennis M. O'Connor
1990-02-22 21:51         ` Barry Margolin
1990-02-23 19:34           ` Loren Louis Hart
1990-02-25 19:58           ` David Kassover
1990-02-26 12:45             ` John F Nixon
1990-02-26 18:28               ` David Kassover [this message]
1990-02-26 20:55                 ` John F Nixon
1990-02-26 22:00                   ` David Kassover
1990-02-27 18:55                 ` Jeremy Epstein
1990-02-28  1:19                   ` Alex Blakemore
1990-02-28 18:56                     ` Ada functions versus arrays (i.e. () vs [] ) Richard A Hammond
1990-03-01  3:25                       ` Alex Blakemore
1990-03-01 13:11                         ` Robert Firth
1990-03-02 10:56                           ` Mike Harrison
1990-03-02 23:46                           ` Scott Simpson
1990-03-02 10:42                         ` Mike Harrison
1990-03-06 19:13                       ` Erland Sommarskog
1990-03-08 14:21                         ` John Goodenough
1990-03-14 18:19                     ` if UNIX then USE_C ?? (was: Reasons for drop) RCAPENER
1990-03-01  0:29                   ` David Kassover
1990-03-01 15:11                     ` Steve Tynor
1990-03-01 18:29                       ` David Kassover
1990-03-02  0:19                 ` Robert D. Houk
1990-02-28 19:51         ` Andy DeFaria
1990-02-20 22:21 ` Reasons for dropping Ada Jeffrey M. Schweiger
replies disabled

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