From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GL8dFaQ6xWMxEAEAbAwnHQ (envelope-from ) for ; Mon, 16 Jan 2023 12:53:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cFElFKQ6xWNUygAAG6o9tA (envelope-from ) for ; Mon, 16 Jan 2023 12:53:08 +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 1A79C24FCA for ; Mon, 16 Jan 2023 12:53:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHO30-0004tU-DP; Mon, 16 Jan 2023 06:53:06 -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 1pHO2x-0004qb-BX for guix-patches@gnu.org; Mon, 16 Jan 2023 06:53:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHO2x-0003tU-23 for guix-patches@gnu.org; Mon, 16 Jan 2023 06:53:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHO2w-0005m2-TK for guix-patches@gnu.org; Mon, 16 Jan 2023 06:53:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60802] [PATCH v3 1/2] platforms: Raise an exception when no suitable platform is found. Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Jan 2023 11:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60802 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Josselin Poiret , Maxim Cournoyer , 60802@debbugs.gnu.org Cc: Christopher Baines , Maxim Cournoyer , Mathieu Othacehe , ludo@gnu.org, Tobias Geerinckx-Rice , Ricardo Wurmus Received: via spool by 60802-submit@debbugs.gnu.org id=B60802.167386992622108 (code B ref 60802); Mon, 16 Jan 2023 11:53:02 +0000 Received: (at 60802) by debbugs.gnu.org; 16 Jan 2023 11:52:06 +0000 Received: from localhost ([127.0.0.1]:60630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHO22-0005kT-7i for submit@debbugs.gnu.org; Mon, 16 Jan 2023 06:52:06 -0500 Received: from mail-wr1-f49.google.com ([209.85.221.49]:43535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHO1v-0005jI-Qi for 60802@debbugs.gnu.org; Mon, 16 Jan 2023 06:52:00 -0500 Received: by mail-wr1-f49.google.com with SMTP id r30so2801661wrr.10 for <60802@debbugs.gnu.org>; Mon, 16 Jan 2023 03:51:59 -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=FRptq05liBgR1wgxq9S5IzuJwg6XAjcADjAJqhKMxa8=; b=Hzku5lTG82NQVQzfySlncnCnjpjsBxmJ1i9fs50Xj6vwQDP2SHHD+my9yxbcLLJQ1x OCwpjeuMm1k0t1LUYHnFNg2Xen0gdx2N6E7w6/P67E0QRD38ul2F/lXFgHXFM/2W4Lj6 CxcMuo2eyFoG4WDpuvDHTpXkMYTi322IBCn+OG4jkVGyv68JGsrT3wI0R9C0sTHVeXRX m3N54TcnfVqJuZC1OXast+QKmP5nHWuKYuQgYUnL8UTbye0uFXXyP6oZBxZmYNSCU6XW cz0WIICDsC8SVpII2BVJ1pFykmntg5QxSsbdFxVS2htt5fXS3Ok1i4mTnCq/6yu4mK8x zF0Q== 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=FRptq05liBgR1wgxq9S5IzuJwg6XAjcADjAJqhKMxa8=; b=JrvDODHJ5ZhDnvhaEmPA6c+73qEgTG9dHSLeRB+wye8f8cEFcUpyG+m3l1kQ6XQk5x 1n82zPcdV1FBlT/BJw3DR/ac8ZCaxsqNTWfmtZo6a07Pp+4Izr8oRwz35V/dHbOoaiFL /VWlrJlf3cBxQlaeZUOuXkrNxW9w5gsWioFFFK39f+dfXyBP1j8F8vAhtE+rTGLfqhG6 t1pE9Gsp+OPnX1UQNL9larpRK+0Qn+Omq6EgWW8VQqsQHYy11veqk4sy4sNCbK7mitMu OTI6Z0d+ph62GRIP387zhIpov2ubLrhreL3ObCH9kp8cl3IK4t7P//kI+KJyTL5AQmg2 nGrA== X-Gm-Message-State: AFqh2kqreu6+U5WxBg1TiuIxf7b/GRmdbMFQrolMxBjMA4FVYSWH+kt5 Cf+p/vKlr0EkFOATLe2UfWQdBbT5+5Y= X-Google-Smtp-Source: AMrXdXvp773XkL7+4tx6rVYm7EXZUHDgBSrc5dMQJV+s0Awvnlz41h9eUoXP6iCyFo4A/1NofKH4+Q== X-Received: by 2002:adf:ec81:0:b0:2be:142d:36ea with SMTP id z1-20020adfec81000000b002be142d36eamr158408wrn.4.1673869914118; Mon, 16 Jan 2023 03:51:54 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id y18-20020a5d6152000000b002425be3c9e2sm25645059wrt.60.2023.01.16.03.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 03:51:53 -0800 (PST) From: Simon Tournier In-Reply-To: <87zgajkiiy.fsf@jpoiret.xyz> References: <20230114151457.1903-2-maxim.cournoyer@gmail.com> <87zgajkiiy.fsf@jpoiret.xyz> Date: Mon, 16 Jan 2023 12:00:20 +0100 Message-ID: <87a62ivj5n.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673869988; a=rsa-sha256; cv=none; b=muiJEAtBoLEj++3eL5+r93C8JZUUhRNZMRPJ6TSsxdoRE0I33YUFoNYVcIrvkXrAtF6k9k gWqsFML+GUX49x+NgyAmwzdc3974SN33LmnlBdXd2DgOPDGoPmqA9NchfTkeQ5Cj7FpEaS bz6A5B64JhI/ugyEUqpie4dkdy6Gsr1N1C1kkkHZxpo6KXjb2ceZ4Cn/XC9nr7R996bLGk HxR+VUiaK266BqWrlMwtNPs0+Cjt+enppnR6k2IXi+Zp0iTdRB1wPt+eQWsqMFlavBhK4E naVKhjdpfSZ31HU9ZFqv3K0ZjsCjfMOyUM0RoEz4dxRd7S/4GYuesIym6K9yAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Hzku5lTG; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673869988; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=FRptq05liBgR1wgxq9S5IzuJwg6XAjcADjAJqhKMxa8=; b=M1mM0hZRUFADUPsZMBIo+hNHc6btpVtLg9smQrSJyEqRN0gg1h2iTrdfNFWvxTv4jHD3L3 OTpWVTnz029MxYS6XicKLI0fBuwHwBGTdJeo8Eoq4WWYm525qtuqy1Fq5RH/yLxJSo5DJN xP2oaePvwTrovp2Vw37V1Hn6SwSUS9AGByY/Mqj/SevTxA9JvxGzap7q6F3fAY4VILSFTH k6DULHGDz+j6LJcXeEJDcBaJXFuJatgkA8hzXYitewHASgqHknRK7WynXnX7le7G/RewGx bbDRin/zd2vGcpRvoFXtIIR5MeArALzcVNATIMylw4ye7X0XDgz091LO/nGtQA== X-Migadu-Spam-Score: -0.52 X-Spam-Score: -0.52 X-Migadu-Queue-Id: 1A79C24FCA X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Hzku5lTG; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: 2N7mlztC/IbK Hi Josselin, On dim., 15 janv. 2023 at 14:57, Josselin Poiret via Guix-patches via wrote: > This looks good to me, although in the grand scheme of things I wonder > if that change is a step forward: for those kinds of procedures, we > could expect consumers to instead always properly handle the #f case > themselves, rather than baby-sitting them and systematically relying on > exceptions in the parent procedure, no? As a caricatural example: the > SRFI-1 `find` could raise an exception instead of returning #f, but I > don't think anyone would consider that proper behaviour. How to handle, is it not somehow a convention? Using the example =E2=80=99find=E2=80=99, we could imagine it returns an exception =E2=80=99n= ot-found=E2=80=99 instead of the current plain #f =E2=80=93 this #f appears to me a convention, no? Or =E2=80=99find=E2=80=99 could return some Maybe monad (=E2=80=99Just the-res= ult=E2=80=99 or None) =E2=80=93 another convention. Well, how to handle appears to me a convention when composing. :-) Cheers, simon