[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: with-url
From: |
Lars Ingebrigtsen |
Subject: |
Re: with-url |
Date: |
Sat, 21 Jan 2017 22:37:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Dmitry Gutov <address@hidden> writes:
> On 22.01.2017 00:23, Lars Ingebrigtsen wrote:
>
>>> You said "none of these should signal an error from the library" in
>>> response to my enumerations of different kinds of errors: 404,
>>> hostname resolution failure, connection timeout.
>>
>> Yes... but you asked about how code would examine "the absence of a
>> connection timeout". I don't know what you mean.
>
> That's exactly my point. You said that none of these should be errors,
> and then only replied how the callers will find out about the error
> status, not about the other kinds of errors.
"The absence of a connection timeout" is not an error. A connection
timeout is an error, of course, and the caller can access that error
like all the other errors.
None of these errors are control-flow-level errors, but are expected
behaviour. You don't signal Lisp-level errors for expected behaviour.
That's what Java programmers did in the 90s, and they've learned their
lessons.
Well, most of them.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: with-url, (continued)
- Re: with-url, Lars Ingebrigtsen, 2017/01/21
- Re: with-url, Dmitry Gutov, 2017/01/21
- Re: with-url, Lars Ingebrigtsen, 2017/01/21
- Re: with-url, Dmitry Gutov, 2017/01/21
- Re: with-url, Lars Ingebrigtsen, 2017/01/21
- Re: with-url, Dmitry Gutov, 2017/01/21
- Re: with-url, Lars Ingebrigtsen, 2017/01/21
- Re: with-url, Dmitry Gutov, 2017/01/21
- Re: with-url, Lars Ingebrigtsen, 2017/01/21
- Re: with-url, Dmitry Gutov, 2017/01/21
- Re: with-url,
Lars Ingebrigtsen <=
- Re: with-url, Dmitry Gutov, 2017/01/21
- Re: with-url, Lars Ingebrigtsen, 2017/01/21
- Re: with-url, Yuri Khan, 2017/01/22
- Re: with-url, Lars Ingebrigtsen, 2017/01/22
- Re: with-url, Dmitry Gutov, 2017/01/22
- Re: with-url, Eli Zaretskii, 2017/01/22
- Re: with-url, Dmitry Gutov, 2017/01/22
- Re: with-url, Dmitry Gutov, 2017/01/22
- Re: with-url, Lars Ingebrigtsen, 2017/01/22
- Re: with-url, Lars Ingebrigtsen, 2017/01/21