ambiguous ?

Jim Giles jlg at lanl.gov
Tue Oct 24 07:18:44 AEST 1989


>From article <11388 at smoke.BRL.MIL>, by gwyn at smoke.BRL.MIL (Doug Gwyn):
> [...]
> In the total context of C as an integrated programming language,
> the short-circuit nature of the && and || operators is very
> valuable.  [...]

I have still not made my point, but I'm close.  Of course the short
circuit nature of these operators is valuable.  If they didn't
short circuit, you would still need a way of providing that functionality.
As I said previously, some researchers have maintained that this
functionality should be provided some other way - leaving the logical
connectives to their usual mathematical purity.  I have said that I
have no particular opinion on this.

However, my _POINT_ was that, if the short circuit nature of these
operators is valuable, then there might also be other contexts where
user control of expression evaluation order might _ALSO_ be valuable!
C doesn't provide such other mechanisms - WHY NOT?!?!?!?

> One can learn to exploit them (or, in your case, perhaps, simply
> to deal with them), but discussion about whether what is, should
> be, are a waste of time.

Why?  Is C set in concrete?  What about C++ ???   How about (C++)++ ?
Why are you so defensive about possible change - maybe even improvement?



More information about the Comp.lang.c mailing list