From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: swedebugia Newsgroups: gmane.lisp.guile.user Subject: Re: Explaining raising conditions and defining condition types in the guile manual Date: Fri, 9 Nov 2018 16:46:38 +0100 Message-ID: <0ca623d3-d7dd-d36a-67b3-16a4694772b2@riseup.net> References: 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 1541777991 11659 195.159.176.226 (9 Nov 2018 15:39:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2018 15:39:51 +0000 (UTC) Cc: =?UTF-8?Q?Ludovic_Court=c3=a8s?= To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Nov 09 16:39:47 2018 Return-path: Envelope-to: guile-user@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 1gL8sq-0002ss-Mz for guile-user@m.gmane.org; Fri, 09 Nov 2018 16:39:44 +0100 Original-Received: from localhost ([::1]:34801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8ux-0003Mz-3z for guile-user@m.gmane.org; Fri, 09 Nov 2018 10:41:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8u6-00032L-K7 for guile-user@gnu.org; Fri, 09 Nov 2018 10:41:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gL8u3-0006Gm-EZ for guile-user@gnu.org; Fri, 09 Nov 2018 10:41:02 -0500 Original-Received: from mx1.riseup.net ([198.252.153.129]:36713) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gL8u3-0006Fv-78; Fri, 09 Nov 2018 10:40:59 -0500 Original-Received: from piha.riseup.net (piha-pn.riseup.net [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 65CAB1A0484; Fri, 9 Nov 2018 07:40:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1541778058; bh=rNO6ewOjcsumd0pOvY9gYxEry0al5Z9RL9l9myMcXxA=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=UP1w5VpFVUg3w0loy8VwnEXVO0U+VUtRhecpruFItJPxMm6QFZ1WY1xuOdA5j3NtR lkERMs/gVsKan6cKR/OPuZXSLDYc1Vxanwxj/0ZvJ+0n7mmOqllwpohJ2j3qwGCZs/ +vqX7wmDHVSJHGJBtXxYdOmat264AG8ygw6lV9QI= X-Riseup-User-ID: D5E73F8F5D89A30C0B68733DC0FC89944557EF430E7590690FC4B11DE307B297 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by piha.riseup.net with ESMTPSA id 8F895658AC; Fri, 9 Nov 2018 07:40:57 -0800 (PST) In-Reply-To: Content-Language: sv-FI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 198.252.153.129 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14976 Archived-At: On 2018-11-09 12:46, swedebugia wrote: > Hi > > I'm digging deep in the source of Guix ATM. > > Reading in the Guile manual I did not find a section describing this > use of exceptions: > > (raise (condition (... > > ^ used by Ludo here: > http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/mapped-devices.scm#n145 Found it! Tucked deep in https://www.gnu.org/software/guile/manual/html_node/SRFI_002d35.html#SRFI_002d35 > > It seems elegant and nice and maybe a generic example based on it > could fit somewhere in the manual. :) There is actually a generic example in the link above :) Cheers