e1?(void_e2):(void_e3) so, is it legal or what?

Geoff Kuenning geoff at desint.UUCP
Tue Aug 12 12:40:18 AEST 1986


While all of this discussion is very interesting and is important to
achieving a precise language definition, let us not forget that there
is *no* reason to ever write this particular expression.  Anywhere it's
useful, you can just write

	if (e1)
	    void_e2;
	else
	    void_e3;

This is better style anyway;  it makes use of a construct that
people are much more used to, and it makes it clearer that what you are
doing is picking one subroutine call over another, rather than something
more subtle.  If you really care about using precious lines, you can even
put it on one line.
-- 

	Geoff Kuenning
	{hplabs,ihnp4}!trwrb!desint!geoff



More information about the Net.bugs mailing list