comp.lang.ada
 help / color / mirror / Atom feed
* No NULL Statement
@ 1992-12-16 18:42 Charles H. Sampson
  0 siblings, 0 replies; only message in thread
From: Charles H. Sampson @ 1992-12-16 18:42 UTC (permalink / raw)


In article <1992Dec15.203558.18211@inmet.camb.inmet.com> stt@spock.camb.inmet.c
om (Tucker Taft) writes:
>
>   In retrospect, one could argue that it would have been better
>   to have no "null" statement at all (other than simply ";") than
>   to create a situation allowing this kind [example deleted] of
>   one word error.

     The problem being discussed was a result of the overloading of
NULL in Ada.  IMO, there's too much overloading of reserved words in
Ada in an effort to minimize the number of reserved words.  (For those
who don't know, keeping the number of reserved words down was a design
requirement.)  However, denoting a null statement by the absense of a
statement is not the way to go, as Mike Feldman's example from C illus-
trates.  I worked for many years in another language that also had this
"feature".  I was amazing how many times the statement controlled by
an IF would vanish by the careless insertion of an unneeded statement
terminator.  The associated debugging problems were severe.

     Furthermore, an explicit null statement clearly says, "At this point,
do nothing."  For those of us who believe in readability, this is impor-
tant.

 				Charlie

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1992-12-16 18:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-12-16 18:42 No NULL Statement Charles H. Sampson

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