Re: [heycam/webidl] Disallow nullable Promise types. (#248)

> What's the reason to disallow nullable promise types? That said, they don't seem to be used, so this is probably OK...

I think the initial idea was that it would be a bad practice to have an attribute or operation not consistently return a promise.

That said, there's a number of functions that take a promise as argument, now, and I could imagine scenarios where it would make sense for these to be nullable.

So on second thought this seems like a good practice issue that maybe shouldn't be enforced by WebIDL.




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/248#issuecomment-265739062

Received on Thursday, 8 December 2016 13:27:01 UTC