emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: with-url


From: Dmitry Gutov
Subject: Re: with-url
Date: Sat, 21 Jan 2017 23:36:48 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Thunderbird/51.0

On 21.01.2017 23:32, Lars Ingebrigtsen wrote:

It's a control flow construct in much the same way `with-temp-file' is.

with-temp-file has no error handling section. If anything unexpected happens during setup or teardown, you can be sure it'll signal a proper error. The callers can't miss it, and they're free to handle different errors via condition-case.

You could say 404 is not an error, but handling it in a similar way to
all other "actual" errors like "can't resolve the hostname" and
"connection timeout" can be pretty handy.

Yes, none of these should signal an error from the library.

How will the callers handle failure, then?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]