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

Re: WebIDL generated TypeErrors and promises

From: Robin Berjon <robin@w3.org>
Date: Fri, 28 Jun 2013 18:01:43 +0200
Message-ID: <51CDB367.5090807@w3.org>
To: Domenic Denicola <domenic@domenicdenicola.com>
CC: public-script-coord <public-script-coord@w3.org>
On 28/06/2013 16:47 , Domenic Denicola wrote:
> I feel somewhat strongly that functions should present an only-sync
> or only-async interface. Thus I would say `boo` gets called with the
> `TypeError`.

A strong +1. The alternative just leads to code duplication in error 
handling.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Friday, 28 June 2013 16:01:53 UTC

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