Dreaming of new generation IDE
Steve Holden
steve at holdenweb.com
Fri Feb 5 14:55:25 EST 2010
Arnaud Delobelle wrote:
> Robert Kern <robert.kern at gmail.com> writes:
>
>> I prefer Guido's formulation (which, naturally, I can't find a direct
>> quote for right now): if you expect that a boolean argument is only
>> going to take *literal* True or False, then it should be split into
>> two functions.
>
> So rather than three boolean arguments, would you have eight functions?
>
If there's genuinely a need for that functionality, yes.
I statement that calls one of two functions depending on the value of a
Boolean is normally considered to be better coupling than calling a
single function with the Boolean as an argument.
As with everything else you have to apply a certain amount of common sense.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/
More information about the Python-list
mailing list