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

Re: Promises and Decidability in Asynchronous Error Handling

From: Andrea Giammarchi <andrea.giammarchi@gmail.com>
Date: Mon, 21 Oct 2013 13:53:41 -0700
Message-ID: <CADA77mhMTr3-prqL3NdbzoZUKi8Xx0L9Wa7Zj=+MBFBJPLZZzw@mail.gmail.com>
To: Domenic Denicola <domenic@domenicdenicola.com>
Cc: Kevin Smith <zenparsing@gmail.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, es-discuss <es-discuss@mozilla.org>
Kevin I have no idea which library you are using but if you do this:

```
    fetchUri("http://someauthority.com/").then(response => {
        for (let header of repsonse.heders) // Note the misspelling!
            console.log(header.key, header.value);
    }).then(Object, function error(e) {
      console.err(e);
    });
```

Wouldn't that solve your problem?

Another thing worth trying is a generic window.on('error') handler ?
Wouldn't that notify you ? That does not solve the broken flow but it
should be an exit point to at least debug or notify problems, am I
missing/misunderstanding something?

Thanks for any extra hint, apologies if I cannot help further :-/




On Mon, Oct 21, 2013 at 1:39 PM, Domenic Denicola <
domenic@domenicdenicola.com> wrote:

> You have been given examples in several previous conversations, but have
> chosen to not find them convincing. I (and others) tire of rehashing this
> argument with you monthly.
>
> I instead responded to the novel content of your post, which was some sort
> of attempt to claim that a language feature allowing Turing-undecidable
> control flow means it is not a desirable language feature. Now that I have
> shown how "patently ridiculous" such a claim is, I do not feel a need to
> switch the conversation back to your usual line of inquiry. Perhaps others
> will take you up on it.
>
> _______________________________________________
> es-discuss mailing list
> es-discuss@mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
Received on Monday, 21 October 2013 20:54:07 UTC

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