From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eHBxKAKwxWPSwAAAbAwnHQ (envelope-from ) for ; Mon, 16 Jan 2023 21:13:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eD6pJwKwxWOmPAAAG6o9tA (envelope-from ) for ; Mon, 16 Jan 2023 21:13:54 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6E91D36D69 for ; Mon, 16 Jan 2023 21:13:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHVrE-0000Ws-4I; Mon, 16 Jan 2023 15:13:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHVrC-0000Wb-9I for guix-devel@gnu.org; Mon, 16 Jan 2023 15:13:26 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHVr9-0000Rb-VV; Mon, 16 Jan 2023 15:13:25 -0500 Received: by mail-wm1-x332.google.com with SMTP id j17so2259020wms.0; Mon, 16 Jan 2023 12:13:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=/FHyakBkcY9rtidepnMrk5lexkCiAmZn7dL69r1wL1k=; b=DyFoSCyxPuvig7PcPWHF82uvH2p2ECd/uXA7diLZqEaCHQEACjtM0kdge1DFcYslWF GUHiP3lKNSWI4O2Kvwhjxs2elcdOdrbpxfnF7e1H6cJD9VQKuNswqfOem1t14dBvOsvA zDwMVJZc9sVaku6UDmwB/KqwJMZCZ3mjib9leMpzBy3SdE5Ci35SL07n9HfSn6SwMg/u CDDaTSeH/461kYQ3m8s5f/1YIpJRqTwDTSsm9+08NGDkq+EO5DaMxBRUdtsNHL1duLSs mKIvxoOLPkTfjW5iXzAPchiiwxfEn8UBmfJg7CjVff/kEbrjx3ODBgG0WY3yd5cks7QQ b6Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/FHyakBkcY9rtidepnMrk5lexkCiAmZn7dL69r1wL1k=; b=wyeqiKOD5++2QgY4KfVirORADMJ1Ljm6wCS+Kv/n9Pq0lpzaSuf1jIWy9DzvKAtzbJ LuJVazuGGD37MywlPgIAmC4ZGw/jqyYIDhip1Mu/iILahH4bZHHUFhDsFZQJbT/39G1l hw8HCBYkuTb82f8SnzBP5zcyZlqXQ2W5vdPwlTAEQkTB2mtxNdqWt9juz9+q7wesmcXg EXg8RuygSq3noIyGD4h+4a1HG2oPEBvZ9dSFyjvTTX3+WkWNn2hUsChBpMhDaBfUZHu+ DevuUj85SY42ZHOJ5zUZImVtke3wIQ7GVYOOM6dhMTBR6zBTc0f5KIUC0vfhRYhhbJ9f wphg== X-Gm-Message-State: AFqh2kpMgJaG+7Ze3GVgZhynPJHKW6Kojw1A3XCecZ30LmErQlgOxHNp UQlzRqEhsc/pWbA0uZGvR3M= X-Google-Smtp-Source: AMrXdXv4rYA/m7IZELcrb8UIYYD8Oh1Xb/wOoc3DLlhZnxpEYEC1k4JckL+ls8uB8hxluvUWTfhkOw== X-Received: by 2002:a05:600c:3ba8:b0:3d9:8635:a901 with SMTP id n40-20020a05600c3ba800b003d98635a901mr181392wms.3.1673900000763; Mon, 16 Jan 2023 12:13:20 -0800 (PST) Received: from lili (roam-nat-fw-prg-194-254-61-43.net.univ-paris-diderot.fr. [194.254.61.43]) by smtp.gmail.com with ESMTPSA id m18-20020a05600c4f5200b003c6b70a4d69sm39299987wmq.42.2023.01.16.12.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 12:13:20 -0800 (PST) From: zimoun To: Maxim Cournoyer , Ludovic =?utf-8?Q?Court?= =?utf-8?Q?=C3=A8s?= , Guix Devel Cc: Tobias Geerinckx-Rice , Josselin Poiret , Mathieu Othacehe , Christopher Baines , Ricardo Wurmus Subject: Exception: srfi-35 vs (ice-9 exceptions (was Re: [bug#60802] [PATCH v2 1/2] platforms: Raise an exception when no suitable platform is found.) In-Reply-To: <87mt6i5q4q.fsf@gmail.com> References: <20230114041903.7121-2-maxim.cournoyer@gmail.com> <87o7r19ocn.fsf@gnu.org> <87mt6i5q4q.fsf@gmail.com> Date: Mon, 16 Jan 2023 21:13:14 +0100 Message-ID: <864jsq8ch1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DyFoSCyx; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673900034; a=rsa-sha256; cv=none; b=lNDCMzVgO4UZNPt3+9uIU9sYn4U9RQMEtmiwFXP0Z14aa6sYsuOgBAy1OGNvOURUMbx2AS YQMRRS8/SPGRiqygJYxRWqGH6qKuMEFQE1Ra6u4utEYmCX3u7CgUKt9/tCPnxPPp1SaLQ/ xmUfY3Q4zL+xrXhebCKFZ3ObbaTa6A3TcTKvGL7IjiEZRdL3AygL2uVWUaw4R/nJ3LOyQD l7xvFvcpTpWeapTQApUagS0zHAEHkdqYWBuFyhX9Azya+4cT40VyBy7jydiqy1A5g0eM6b 7hSFIqh6CukqUcULY8QK3+JKOFLv8fnzfip8mVL1KHHy6rcK5au6deaL2Rpb9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673900034; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/FHyakBkcY9rtidepnMrk5lexkCiAmZn7dL69r1wL1k=; b=oK6KdFD4PBc0Hz3TXUggR5pVg8u6H6ivQOJ2gu7NznTQwTXNyhtyiWVb7l44eej+jr0vvx a6c1Xoi/7HA0AUenrRQfMnqEmlAT5QqO1iB7bXd7T7P1hsmNbPIr5E44swFBDj+czlQpSp 0Hmvo3pDUX4tOtmplrSyrfwoYTByF/b2Q8b+XOdKMgD6gpayMXDlH5HsWA6uwfe2YunH/9 JDHuo8B7KwwZLNrh9PhdP+UQpZXj1TSth6PGbhxNr8uv9KxnOVmTYGkWiFo1eFaNkxewId 1n2X14A/dC0InqF3UsNQwrs9UfK0I7UzhSwz1gTB4CVkyvhxe7YmRKG8qTXlrQ== X-Migadu-Queue-Id: 6E91D36D69 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DyFoSCyx; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Spam-Score: -8.28 X-Spam-Score: -8.28 X-TUID: Z1pQ4GI5STxK Hi Maxim, On Mon, 16 Jan 2023 at 12:46, Maxim Cournoyer w= rote: >> So far the we use (srfi srfi-35) exclusively to define condition types; >> I think we should do the same here, for consistency. > > Could we instead start migrating away from srfi-35 to (ice-9 > exceptions), which is the new native way to use exceptions in Guile?=20=20 Well, I think this should be discussed separately. Therefore, -60802@debbugs.gnu.org and +guix-devel. :-) > I > think it'd be nicer to use it in the future, to avoid newcomers being > confusing about the 3 or 4 ways to manage exceptions in Guile > (recommended read on the topic: > https://vijaymarupudi.com/blog/2022-02-13-error-handling-in-guile.html). In Guile maybe several but only one in Guix: (srfi srfi-35). :-) > Migrating the whole code at once doesn't seem a good idea, so gradually > transitioning (such as using (ice-9 exceptions) for new code) appears a > good idea to me, if we agree on the direction! Just to note that all Guix is using (srfi srfi-35); except, --8<---------------cut here---------------start------------->8--- 1 candidates: ./guix/build/minetest-build-system.scm:26: #:use-module (ice-9 exceptions) --8<---------------cut here---------------end--------------->8--- Therefore, this plan needs to be a bit cooked, otherwise it will become quickly a big mess with 2 ways for managing exceptions =E2=80=93 and people= , at least me, will be confused to pick the correct one depending on the module. Well, if such migration makes sense (I do not know?), from my point of view, the migration of the whole code in a short period of time appears to me the best; probably with a dedicated WIP branch. Cheers, simon