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

[Bug 23532] Dealing with undefined

From: <bugzilla@jessica.w3.org>
Date: Thu, 24 Oct 2013 14:23:07 +0000
To: public-script-coord@w3.org
Message-ID: <bug-23532-3890-y2LKS8OLPj@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23532

--- Comment #31 from James Graham <james@hoppipolla.co.uk> ---
(In reply to Erik Arvidsson from comment #30)
> Also, whether WebIDL has a more useful behavior is debatable. I haven't seen
> many (any?) JS libraries follow WebIDL.

That data would also fit the hypothesis that argument validation is too hard to
do in JS and people are lazy so don't bother. Given that it is easy to make a
case that throwing is preferable for API users but no one has even attempted to
make a case, other than consistency, why not throwing might be preferable, I
think my alternative hypothesis is significantly more likely.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 24 October 2013 14:23:13 UTC

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