Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!think.com!snorkelwacker.mit.edu!bloom-picayune.mit.edu!news From: scs@adam.mit.edu (Steve Summit) Newsgroups: comp.lang.c Subject: Re: One more point regarding = and == (more flamage) Message-ID: <1991Mar29.025709.1991@athena.mit.edu> Date: 29 Mar 91 02:57:09 GMT References: lotsa Sender: news@athena.mit.edu (News system) Reply-To: scs@adam.mit.edu Followup-To: alt.religion.computers Organization: Thermal Technologies, Cambridge, MA Lines: 40 In articles too numerous to mention, people are asserting that while(*a++ = *b++) is or is not good style. At this point neither side is likely to convince the other. If you like while(*a++ = *b++) keep on using it. Neither I nor any other Usenet poster is going to (or can) stop you. If you prefer while((*a++ = *b++) != 0) more power to you, and keep on using it. If you're undecided, don't let the assertions being made ("THIS is good style, and I have Spoken") sway you unnecessarily. Decide for yourself which is clearer and least likely to be misunderstood by future maintainers. Whichever way you choose, you've got precedents -- there is obviously no consensus on which way is "best." A colleague of mine once expressed a bit of dismay that he'd never be a "good" C programmer, because he couldn't write, and didn't feel like learning how to write, the supercompressed code he saw all around him. He was writing perfectly good code, but he was tending to leave things explicit and obvious. It is a sad commentary on our little subprofession that barely-penetrable code is so widespread that it can be perceived as a requirement. Codesmanship (or, job security through obscurity) is alive and well. Steve Summit scs@adam.mit.edu