[comp.lang.c] Three states

brnstnd@stealth.acf.nyu.edu (04/08/90)

In article <16388@haddock.ima.isc.com> karl@haddock.ima.isc.com (Karl Heuer) writes:
> I can imagine a situation, e.g. a variant of ctype where is_lower(c) returns
> TRUE or FALSE normally, or ERROR if c is out of range.  But I would think
> that this would be rare usage, and not worthy of being part of the type.

Bad example: somehow I never find that I already know isascii(c) before
calling isdigit(c), so for ``portability'' I always have to use both.
So it wouldn't be rare usage. On the other hand, I also see absolutely
no use for a three-valued isdigit above a simple isascii && isdigit; I
suspect most other programmers agree.

---Dan