home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
- From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
- Newsgroups: comp.lang.c
- Subject: Re: Hows this for odd
- Message-ID: <1992Nov11.002852.15636@klaava.Helsinki.FI>
- Date: 11 Nov 92 00:28:52 GMT
- References: <1992Nov9.102217.23060@monu6.cc.monash.edu.au> <1992Nov9.231340.10201@ptcburp.ptcbu.oz.au> <1992Nov10.223737.13813@klaava.Helsinki.FI>
- Organization: University of Helsinki
- Lines: 20
-
- In a recent article I wrote:
- > since an equality test does not yield a conceptually boolean value
-
- which should have been "conceptually arithmetic value", of course.
-
- Also, it was pointed to me by e-mail that the original poster was
- complaining about was using a function call to compare against an
- empty string. While I agree that this does seem wasteful (I compare
- the first char to '\0' myself as well), it does have the advantage of
- being more orthogonal, since you do string comparisons always in the
- same way. A bit like most people seem to always use printf to print
- to stderr, instead of putchar, puts, or some other function, which
- would seem to be more efficient. (There are no guarantees that they
- will be more efficient in practice that the added confusion of several
- output functions is worth it. This too is a stylistic issue,
- however.)
-
- --
- Lars.Wirzenius@helsinki.fi (finger wirzeniu@klaava.helsinki.fi)
- MS-DOS, you can't live with it, you can live without it.
-