comp.lang.ada
 help / color / mirror / Atom feed
From: ghost.dsi.unimi.it!univ-lyon1.fr!scsing.switch.ch!epflnews!disuns2.epfl.c h!di.epfl.ch!Magnus.Kempe@tcgould.tn.cornell.edu  (Magnus Kempe)
Subject: Re:  Software vendors not using Ada but C
Date: 24 Jun 93 06:05:47 GMT	[thread overview]
Message-ID: <1993Jun24.075000@di.epfl.ch> (raw)

In article <20afbsINN6or@news.u.washington.edu>, bketcham@stein2.u.washington.e
du (Benjamin Ketcham) writes:
:
: Of course, logical use of whitespace can be very helpful, so I might
: write
: 
:     result = condition5&&condition6 || condition7&&condition8 ;

Surely you mean

	result = cond5 && cond6||cond7 && cond8 ;    :-?


Relying on whitespace to convey operator precedence is double-plus
ungood.  You cannot hope that every programmer or mathematician and
non-programmer or non-mathematician (wait, can you parse it? should
that rather be and and and or or or or?  or comma comma or?) in the
world should assign universal precedence levels to and and or
(parenthesis omitted, since precedence levels are self-evident :-).

Thou shalt use parenthesis.
-- 
Magnus Kempe			"Reason ... is the glory of our nature."
Magnus.Kempe @ di.epfl.ch				-- Elihu Palmer

             reply	other threads:[~1993-06-24  6:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-24  6:05 ghost.dsi.unimi.it!univ-lyon1.fr!scsing.switch.ch!epflnews!disuns2.epfl.c [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-06-27 12:38 Software vendors not using Ada but C David Weller
1993-06-25 23:39 Mark Bayern
1993-06-23 22:10 Michael Feldman
1993-06-23 20:44 cis.ohio-state.edu!math.ohio-state.edu!uwm.edu!ogicse!netnews.nwnet.net!n
1993-06-23 20:33 Robert Firth
1993-06-23 19:07 Bill Yow
1993-06-22 15:33 agate!howland.reston.ans.net!math.ohio-state.edu!sdd.hp.com!col.hp.com!cs
1993-06-22 12:30 Mike King
1993-06-22  6:50 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!cs.utexa
1993-06-18 14:19 Colin James 0621
replies disabled

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