From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: with-url Date: Sat, 21 Jan 2017 23:36:48 +0300 Message-ID: References: <87mvffva75.fsf@gnus.org> <9bd035f3-c7cd-0c8d-81b8-226fb24f608e@yandex.ru> <87bmv0beoa.fsf@gnus.org> <87bmv09ms8.fsf@gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1485031056 20417 195.159.176.226 (21 Jan 2017 20:37:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2017 20:37:36 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Thunderbird/51.0 Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 21 21:37:33 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cV2Pc-0004LY-Pm for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2017 21:37:24 +0100 Original-Received: from localhost ([::1]:33264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV2Ph-0002Xr-VG for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2017 15:37:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cV2PA-0002Xj-G7 for emacs-devel@gnu.org; Sat, 21 Jan 2017 15:36:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cV2P5-0000Qe-KS for emacs-devel@gnu.org; Sat, 21 Jan 2017 15:36:56 -0500 Original-Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:36847) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cV2P5-0000QO-DG for emacs-devel@gnu.org; Sat, 21 Jan 2017 15:36:51 -0500 Original-Received: by mail-lf0-x241.google.com with SMTP id h65so11124783lfi.3 for ; Sat, 21 Jan 2017 12:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VDhXDAOPTwP4pKVkz0Zb47sQLq1vx3uMYII64RaCZgM=; b=sIt8WAituOuqcxFyEpLvE2jhSsVjulQmNOUAJGa0XlBWp4uywwqi36Wkw2v0SQKw8X Z7lZkD8UDryE/T7ScIRhabzSGQm+C8giuRdNBgNbTdbHAHimbv6oE7Ohsw4h0D2kdZzT sI0l5LWRaXOrdwTeWlfPdTILMKoLKicCI6VGaqFJIq5b9uN/f6SlAWQw9Dv39c5Nqf3C Ak+D9MORtFwb0EcARoj+e8gnEwenDi2IA3L59ij3KMpcp51emvVa1IavUnAtoo9togOt UhfWtrudFXgyfe1KFHbR0LD62yNunTiF20lmHn980tlilxHSKKyYMy5x6gwjr0e/D06U 1JDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VDhXDAOPTwP4pKVkz0Zb47sQLq1vx3uMYII64RaCZgM=; b=ACqKRkpxkBOvFpPJne14hU5Jwj9QpLYkFUimWn4kcwm9eEeUEt92ymAlnmWcIycKHh FHtIqOfkneGVC8YSTHhfU6RjEZDee6gLNbyY/C/dHKCidV3PpN9zp8QhIYszsFOCvxCD JOuH37QNLwCdniTnVlozIOTvBSpycQtt6GrOcEzLoM+MAqgn25HWTb5y/sv5V+Hr7zhr x+VlW8l3eX+0/ftVcVbszRufpoqauBT9+QRO4GjaEe43BQk+VNBze4j2AGQwfMUS8YDv 8cIm9sgvS/r6Zxc08I2z7J30hhw0chT4H088ak9auvyxJqQtrku37ozDS2g9wLHdKXbq CBRA== X-Gm-Message-State: AIkVDXIK2dtWcSEeGT2fBSJu94lnFNs6JWarCA+c5pJYeNWzMgoimin4xRCjolXNlfL01w== X-Received: by 10.25.80.26 with SMTP id e26mr6760195lfb.82.1485031009878; Sat, 21 Jan 2017 12:36:49 -0800 (PST) Original-Received: from [192.168.1.174] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id m18sm4727625lfe.45.2017.01.21.12.36.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jan 2017 12:36:49 -0800 (PST) In-Reply-To: <87bmv09ms8.fsf@gnus.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::241 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211491 Archived-At: 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?