Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cbmvax!snark!eric From: eric@snark.uu.net (Eric S. Raymond) Newsgroups: comp.lang.c Subject: Re: why bother with operator precedence Message-ID: <1VwHpQ#2dzYq427YB0P6FWGbR4gsP6Q=eric@snark.uu.net> Date: 27 Mar 90 22:44:26 GMT References: <2205@osc.COM> <340018@hplvli.HP.COM> <19356@megaron.cs.arizona.edu> <894@dino.cs.iastate.edu> <2677@sunquest.UUCP> <12845@csli.Stanford.EDU> Lines: 13 Back-References: <1379@ux.acs.umn.edu> In <12845@csli.Stanford.EDU> Bill Poser wrote: > So, why bother with precedence? I'll second your point and add that I think most expert C programmers use parens rather than relying on precedence much beyond "* binds tighter than +" and the fact that relationals bind tighter than && and ||. Myself, I wouldn't have more than a vague idea of the hairier precedence/associativity rules without looking at a chart, nor have I ever felt pressured to learn; parens are cheap and give one that wonderful feeling of security. Code defensively...the life you save may be your own! -- Eric S. Raymond = eric@snark.uu.net (mad mastermind of TMN-Netnews)