- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 17 Sep 2013 11:16:20 -0700
- To: Ian Hickson <ian@hixie.ch>
- Cc: WHATWG <whatwg@whatwg.org>, Rik Cabanier <cabanier@gmail.com>, Robert O'Callahan <robert@ocallahan.org>
On Tue, Sep 17, 2013 at 10:30 AM, Ian Hickson <ian@hixie.ch> wrote: >> > On Tue, 30 Apr 2013, Rik Cabanier wrote: >> > > >> > > I think the exception on negative radius should also be removed. >> > >> > What would a negative radius mean? >> >> Either treat it as zero, or use the absolute value. Avoiding exceptions >> will make web apps more robust. > > Or more buggy, because authors won't notice their errors. > > I'm not a fan of "sweep it under the carpet" bug handling, personally. It > drives me crazy that JavaScript has no type checking, no argument > checking, etc. So many bugs that should be caught at compile time, or at > least at runtime when the code is reached, are instead caught only after > careful testing. "Runtime when the code is reached" often actually means "Whoops! Now the entire app's broken because I forgot to handle a silly edge-case.". When there's an easy and obvious recovery strategy, it's often much friendlier to authors to take it rather than force them to handle errors. This is fairly standard practice in DOM and ES design. ~TJ
Received on Tuesday, 17 September 2013 18:17:10 UTC