Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: For vs while (was Re: Comparing strings...)
Message-ID: <1990Oct22.163404.13376@zoo.toronto.edu>
Organization: U of Toronto Zoology
References: <2205.271700c2@cc.nu.oz.au> <1990Oct13.190106.15615@ux1.cso.uiuc.edu> <10678.271ade27@amherst.bitnet> <1990Oct17.030157.460@ux1.cso.uiuc.edu> <2226@ukc> <8308@scolex.sco.COM>
Date: Mon, 22 Oct 90 16:34:04 GMT

In article <8308@scolex.sco.COM> seanf (Sean Fagan) writes:
>#define	while(cond)	for(;cond;)
>
>(I've wondered why C had while, because of this.  The only think I could
>think of was that for came after while, and They didn't want to break
>existing code...  Any commentators?  [Henry?  Chris?  Doug?  Dennis?])

Do bear in mind that the whole preprocessor was an afterthought, and did
not exist in the original implementation.
-- 
The type syntax for C is essentially   | Henry Spencer at U of Toronto Zoology
unparsable.             --Rob Pike     |  henry@zoo.toronto.edu   utzoo!henry
