Path: utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!srcsip!nic.MR.NET!vixvax!glass From: glass@vixvax.mgi.com (William H. Glass) Newsgroups: comp.lang.c Subject: Re: why bother with operator precedence Message-ID: <92.260eb295@vixvax.mgi.com> Date: 27 Mar 90 06:23:48 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> Organization: Management Graphics, Inc. Lines: 17 In article <12845@csli.Stanford.EDU>, poser@csli.Stanford.EDU (Bill Poser) writes: > Insisting that students use minimal parenthesization will help them > to learn the precedence rules, but why bother? I recall that in McCracken's 1960ish book on Fortran programming, he said "when in doubt parenthesize". I feel that is still good advice. When trying to debug someone else's code, I'd much rather see some extra parenthesis then find a bug caused by someone who thought that he knew the operator precedence, but didn't. -- William H. Glass Internet: glass@mgi.com Management Graphics, Inc. 1401 E. 79th Street Minneapolis, MN 55425 +1 (612) 854-1220