From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aKmSC+765mEFOwEAgWs5BA (envelope-from ) for ; Tue, 18 Jan 2022 18:37:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oMDrCO765mEoGgEA9RJhRA (envelope-from ) for ; Tue, 18 Jan 2022 18:37:50 +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 D95F545FA6 for ; Tue, 18 Jan 2022 18:37:49 +0100 (CET) Received: from localhost ([::1]:50182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9sQX-00044M-0s for larch@yhetil.org; Tue, 18 Jan 2022 12:37:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9rwV-0001Ap-K0 for guix-devel@gnu.org; Tue, 18 Jan 2022 12:06:48 -0500 Received: from mail-40136.proton.ch ([185.70.40.136]:42397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9rwS-0002ds-Db for guix-devel@gnu.org; Tue, 18 Jan 2022 12:06:47 -0500 Date: Tue, 18 Jan 2022 17:06:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1642525591; bh=vAbfObUSdYvvMAojhxsuOwhG5j2VP+zeHRmac/o39TQ=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=Q2l6TcH3/iBNwpZ4vI3q7sbYwu7AGpgjh3waM3fpVdWAHMpULbrho31EuSG/L0NVY bnbp0Wlqu7/qlyswKZsYMu1H4CEuR5HB+6VZ+ptsGDQhVgmLf+nYi212HLOY6FmJfN omv24gjVy6s5YWRSXwhHgVPLj1PLg8y4upWyrw0De1VmdKG+FEiSabLpLArVd50AEz esm6lgSUnMkorFAMc0Du/I2D8mq93BB6TgmZ8qBjwBn02yo6PYh+1m/ASUg8wGnJnT 6KKLzOAtn2UHFQSSopg2CjrJuJiy5maJyAQjGF0RWOGcZOIsmx+vYA+94ABoEww/Co 9S2Co86fV3AOA== To: =?utf-8?Q?Ludovic_Court=C3=A8s?= From: Attila Lendvai Subject: Re: using an SRFI that is not available in Guile Message-ID: In-Reply-To: <87iluhf5ci.fsf@gnu.org> References: <6vmHCdZdAWsjqvLgmVNEZclQ-JbdRJLfGzLNphX3EbevcslD-_TkMuHA1MwIylOfbe3DkDXYCbx5WT_Q44sC1Qed5MsBUg2xxZKhUbChGGs=@lendvai.name> <87iluhf5ci.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.136; envelope-from=attila@lendvai.name; helo=mail-40136.proton.ch 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Reply-To: Attila Lendvai Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642527469; h=from:from:sender:sender:reply-to: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=vAbfObUSdYvvMAojhxsuOwhG5j2VP+zeHRmac/o39TQ=; b=SHmrxpk9qgTqQPzhJz8UWAW4zja2+0otcDDVTmyC3v+E+jSe+IysBGwrjU+zy40x1eCQCq HAT4uX/xEIqm2jDKDQ5RaePbFIk9Rnn05OLZwrxh+M5uDsAQwm85m+MOSYM0yEiDVrCsdA w9CMnBOl9VCYV4yRuc9r53ryFHl0X9OEGCOKPq1BpPiFFhPg4FXeVRnd2zc2lJ7Ns+oaOY aUKYONzr/8cNaq7fhLxtaQ+mllZu+zJB2TYRn7Wz1nCKyg6oW1Rtn2axDbtAxWM+818jsp eMEnJLsmmxEpsjaXermH7QsUJdayiggEAIHg1Bu8iVC8GGI4OI9K7mas2gBYDw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642527469; a=rsa-sha256; cv=none; b=ASb2FloUXZUpA5ON/VOY80/zKOr2/YwYrA5A1KWRzWJPrHVTaaX/XB4gVd1ASE+tfeIbmB 1a5DM6xKpjkq6q4c27EA1RQjuYwcwsST/INAZEjg+FyEeRnc2gOQuDdEfarhDhOw0F5GZU Ty43ZNbf3O3C/3lxJadvs9trERQNcQELtjPXev+qN4wJtcZSJ9MSv57knkY/8uQRJDZSuv 4EFr9F6LVuoLusZNcObrqNKPGTKeofOd1YdtGWChMY7Xc8fR2L4sxp7NYEOXzMMs06R41Q 1GTZeN8C3J1ZzISraAn5KYUzgXF6fkF90YeqMkN9GDmypQ3J545NqQTbru1Suw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=Q2l6TcH3; dmarc=none; 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" X-Migadu-Spam-Score: -3.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=Q2l6TcH3; dmarc=none; 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" X-Migadu-Queue-Id: D95F545FA6 X-Spam-Score: -3.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: rOgG6FLcdfR0 > There=E2=80=99s no widespread =E2=80=9CMaybe=E2=80=9D idiom in Scheme; or= rather, people use > TYPE | #f as a way to approximate =E2=80=9CMaybe=E2=80=9D. It=E2=80=99s n= ot ideal, primarily > because appropriate handling is not statically checked. Yet, that= =E2=80=99s > what we have and I=E2=80=99m not convinced adding SRFI-189 to the mix wou= ld > bring enough of an improvement to justify it. > > Thoughts? configurations are full of boolean fields, where #f is a valid value. to represent unset fields, we would essentially need to implement half of srfi-189 (Maybe and Nothing), and in a potentially buggy way (e.g. using a symbol like 'disabled to represent an unset field value (i.e. the current solution) clashes with a field type of symbol?). i don't think it's worth rolling our own when an srfi covers what we need. -- =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CGo find yourself first, so you can find me.=E2=80=9D =09=E2=80=94 Rumi (1207=E2=80=931273)