[comp.lang.c] Writing readable code really opttimisation

DRIEHUIS%HLERUL5.BITNET@wiscvm.wisc.EDU (07/06/87)

(Re: getting a new compiler if the one you use now doesn't
optimise 'fd==-1' into 'fd<0')
Look at the rephrased problem. How do you suppose the
compiler is to know that no negative value other than -1 is
ever to be returned from open() ? Of course, we know better,
we can make such inferences from manuals. It is a completely
different subject if a small optimisation on a (relatively
costly) operating system call is worth the price of
(alleged) lesser readability.
                                        - Bert
Bert Driehuis, LICOR Leiden, The Netherlands <DRIEHUIS@HLERUL5.Bitnet>
                        V.N.G. The Hague
<I speak for neither of the above>
Sorry, no funny quote of the day: I'm on VAX/VMS, remember,
with all the 'functionality' of several hundred different
file formats, even more permutations on the local
equivalent of a simple write(), but still *no* readnews, *no*
'.plan'-s, *no* 'who -hungry' and *no* '.signature'-s.