W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

RE: APIs that have boolean arguments defaulting to true

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Mon, 11 Nov 2013 20:18:45 +0000
To: "Mark S. Miller" <erights@google.com>, Boris Zbarsky <bzbarsky@mit.edu>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <ad062c77fe544e32a794e65fa3313a36@BN1PR05MB325.namprd05.prod.outlook.com>
My impression was that boolean arguments in general should be avoided. "The Boolean Trap", as it's called:



For example, `node.clone({ shallow: true })` or `node.clone({ deep: true })` seems much better than `node.clone(true)` or `node.clone(false)`.

Received on Monday, 11 November 2013 20:19:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:19 UTC