"handy.h"

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Wed Sep 4 04:30:16 AEST 1985


>     #define EVER ;;
> 
> then you can say:
> 
>     for(EVER) {
>         stuff;
>         }

I think this illustrates one of the potential problems with
hiding the actual language underneath definitions.  If the
loop REALLY continues "for ever", then it is probably not a
good algorithm.  Possibly
	#define	repeatedly	for ( ; ; )
would be a better fit to English.  But (unlike the Boolean
data type) the extra effort of becoming familiar with this
usage does not seem to be adequately repaid in clearer code.
(Of course that's a judgement call..)



More information about the Comp.lang.c mailing list