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:45:10 +0100 Message-ID: <2ec3dbc7-174c-4f4f-1f6e-b2605fd7efb0@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 1541777896 3716 195.159.176.226 (9 Nov 2018 15:38:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2018 15:38:16 +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:38:11 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 1gL8rJ-0000oD-0L for guile-user@m.gmane.org; Fri, 09 Nov 2018 16:38:09 +0100 Original-Received: from localhost ([::1]:34792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8tP-0002TW-9m for guile-user@m.gmane.org; Fri, 09 Nov 2018 10:40:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL8sy-0002TP-1d for guile-user@gnu.org; Fri, 09 Nov 2018 10:39:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gL8su-0004oH-R5 for guile-user@gnu.org; Fri, 09 Nov 2018 10:39:51 -0500 Original-Received: from mx1.riseup.net ([198.252.153.129]:36423) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gL8su-0004VU-AP; Fri, 09 Nov 2018 10:39:48 -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 4DDFC1A0448; Fri, 9 Nov 2018 07:39:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1541777971; bh=rNO6ewOjcsumd0pOvY9gYxEry0al5Z9RL9l9myMcXxA=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=EMxBUOy9inzzaUSZqlKwqe0AADAth6sVB4MmULTpHzdBFK/pBKKhc3GkMg11fD7eu /kaH+uD+bW+xC47etj/5e9k4lZA1oyaoqRI5QHv+/lLQekMK4IbUz+OsqLVBpebuCt zKmCXPDvouIAVbTJfks8Gews+tEp0ib4C+g3c0kw= X-Riseup-User-ID: 64BF3AE8615C15FA655748386C07F8692EB1FF9BFC131D12D67E35782E904B1D Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by piha.riseup.net with ESMTPSA id 2F4746595A; Fri, 9 Nov 2018 07:39:29 -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:14974 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