comp.lang.ada
 help / color / mirror / Atom feed
From: netnews!schonberg!dewar@nyu.edu  (Robert Dewar)
Subject: Re: Learning C and C++
Date: 3 Jun 93 12:48:54 GMT	[thread overview]
Message-ID: <dewar.739111734@schonberg> (raw)

Of course I agree with Bob, the use of the C macro processor to distort the
syntax is a truly horrible practice. Indeed it is this kind of abuse of
macro processors that helped result in the rather draconian approach of
Steelman which required that Ada NOT have a macro processor.

When I talked of using Ada style in C, I was referring not to low level
syntactical stuff, where you are stuck (or blessed, depending on your
point of view, or perhaps whether you are a reader or writer) with the
C syntax, but rather to high level structuring approaches.

In particular, I think most C programming would benefit from a much more
disciplined view of header files, to elevate these to the same level of
importance, design and control as package specs in Ada. Of course in C one
has to depend on people's good behavior or the use of external tools where
in Ada the language provides the necessary control, but it's quite possible
to write C using the Ada package style.

             reply	other threads:[~1993-06-03 12:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-03 12:48 Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-06-02 19:08 Learning C and C++ Robert Kitzberger
1993-06-01  6:15 Dag Bruck
1993-05-31 13:18 LEARNING C AND C++ Bjarne Stroustrup
1993-05-29  0:12 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland.
1993-05-28 20:22 Learning C and C++ Robert Dewar
1993-05-28 18:20 Step he Leake
1993-05-28  9:00 Peter Hermann
1993-05-27 10:14 agate!howland.reston.ans.net!torn!nott!bnrgate!bnr.co.uk!zaphod.axion.bt.
replies disabled

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