W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > August 2010

[Bug 10126] The arc() function's last argument should be optional. Webkit doesn't require it, treating it as false if not provided.

From: <bugzilla@jessica.w3.org>
Date: Mon, 30 Aug 2010 19:55:09 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1OqARh-0003u5-10@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10126





--- Comment #2 from Tab Atkins Jr. <jackalmage@gmail.com>  2010-08-30 19:55:07 ---
(In reply to comment #1)
> Rationale: Why would it be optional? You need to know what direction to go in;
> why does clockwise make so much more sense that we should just assume it?

Assuming one direction or another is helpful to authors in the first place; why
force them to make an explicit choice when clockwise is a perfectly adequate
default?

More generally, whenever I see a trailing boolean argument, I assume that I can
leave it out and it will just be filled by undefined, equivalent to false. 
Putting in a ",false" at the end of all my functions is opaque and annoying.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 30 August 2010 19:55:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:22 UTC