Re: Promises "if not omitted" language

2013/7/31 Anne van Kesteren <annevk@annevk.nl>

> On Tue, Jul 23, 2013 at 3:55 PM, Juan Ignacio Dopazo
> <dopazo.juan@gmail.com> wrote:
> > Do you have any thoughts on the IsCallable() change?
>
> We could do an IsCallable check, but that would ignore all kinds of
> erroneous values. Is that really what we want? Special casing null is
> not desired reportedly. undefined is equal to omitting it. Ugh.
>
> I think you're right in that ignoring non-callable values is a bad idea.
And Domenic may not like it but the truth is there's a lot of code out
there using then(null, fn). To compare with my previous email, searching
for "then(undefined" returns 10x less results:
https://github.com/search?l=javascript&q=%22then%28undefined%22&ref=cmdform&type=Code
.

Juan

Received on Wednesday, 31 July 2013 16:17:20 UTC