|
From: | Helge Hess |
Subject: | Re: [RFA]: BOOL coding standards (Was: Problem with +numberWithBool: ?) |
Date: | Mon, 2 Feb 2004 02:25:42 +0100 |
On 30.01.2004, at 18:45, Richard Frith-Macdonald wrote:
so I don't claim that testing against YES definitely produces more robust code, just that it seems to have done so for me.
Please elaborate. I can't see how testing for a more specific value can lead to more robust code! I definitely can see how *returning* a specific value produces more robust code.
Old rule of being tolerant on input and strict on output. Greets, Helge -- http://docs.opengroupware.org/Members/helge OpenGroupware.org
[Prev in Thread] | Current Thread | [Next in Thread] |