Re: [OT-ish] Design principles: no bool arguments

2011-08-25 Thread Roy Smith
In article <4e55f604$0$29973$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > [1] This is the Internet. There's *always* a certain amount of disagreement. No there's not. -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT-ish] Design principles: no bool arguments

2011-08-25 Thread Terry Reedy
On 8/25/2011 3:13 AM, Steven D'Aprano wrote: One design principle often mentioned here (with a certain degree of disagreement[1]) is the idea that as a general rule, you shouldn't write functions that take a bool argument to switch between two slightly different behaviours. This is a principle o

[OT-ish] Design principles: no bool arguments

2011-08-25 Thread Steven D'Aprano
One design principle often mentioned here (with a certain degree of disagreement[1]) is the idea that as a general rule, you shouldn't write functions that take a bool argument to switch between two slightly different behaviours. This is a principle often championed by the BDFL, Guido van Rossum.