Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Promises/A+. Parent comment
Sending in undefined for a non-trailing argument takes effort.
I think the literal null is far more communicative of the developers intent.
But the general point is, JS APIs tend to fail silently on error by design and that's something that bugs me, literally. Bugs. Lots of them.
I agree regards returning a failure rather than throwing an exception, though.
There are no comments on this comment yet.
Sending in undefined for a non-trailing argument takes effort.
I think the literal null is far more communicative of the developers intent.
But the general point is, JS APIs tend to fail silently on error by design and that's something that bugs me, literally. Bugs. Lots of them.
I agree regards returning a failure rather than throwing an exception, though.