more about programming style

Tim Smith tim at callan.UUCP
Wed Aug 14 06:00:52 AEST 1985


> > What chance is there of having assignment denoted by := in the standard?
> > (None, right?  To much code is written with = already. And if I really
> > insist I could use the preprocessor.  None the less ... )
> > The reason I would like this is then ALL assignments ( +=, |=, etc) would
> > be two characters long (consistancy!!). Among other things this would minimize
> > the = vs == type errors.
> > 
> > Todd Olson        
> 
> Um, what about <<= & >>=?

Simple.  Replace <= with .le. and >= with .ge., < with .lt., > with .gt..
Then Shift can become < or >, and shift assignment can be <= or >=.
-- 
					Tim Smith
				ihnp4!{cithep,wlbr!callan}!tim



More information about the Comp.lang.c mailing list