Hi Bill,
-=> 18 May 98 06:35, Bill Birrell wrote to Tom Torfs <=-
BB> For me it isn't worth it - I'd rather live with the possibility of
BB> a misassignment than turn programming into mumbo-jumbo, especially as
BB> unintentional assignment is one of the errors that both MS and Zortech
BB> (Symantec) compilers trap, so the ritual is not only irritating but
BB> also redundant.
I'm also one of those who don't use the NULL==whatever method. Nevertheless,
I can see it's value and have no trouble reading code where it's used. I do
however regularly include assignments within tests, often to simplify the
code. To my way of operating having the compiler flag warnings on such things
is not only redundant, it's downright annoying and leads to restrictive
coding practices.
BB> When it is time to revise code, clarity is everything and the KISS
BB> principle is worth its weight in gold. I know it only requires a
I fear that any revision to be carried out on a program should never be
undertaken by someone who has even the slightest trouble reading code such as
if(NULL==something). I think you, and others, are making a rather huge
mountain out of this tiny little molehill. I don't believe that even a
complete novice would have trouble once the reasoning behind it is explained
to them, unless of course they lack the basic aptitude in the first place.
ttyl,
>>> Fuse (fuse@one.net.au) >>>
--- GoldED/386 3.00.Alpha4+
---------------
* Origin: The Cubby House, I C it but I don't believe it (3:634/391)
|