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 ms0.migadu.com with LMTPS id wPIHE7Tq52H/OQEAgWs5BA (envelope-from ) for ; Wed, 19 Jan 2022 11:40:52 +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 +PuqC7Tq52H/sgAAG6o9tA (envelope-from ) for ; Wed, 19 Jan 2022 11:40:52 +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 DA0882A8C4 for ; Wed, 19 Jan 2022 11:40:51 +0100 (CET) Received: from localhost ([::1]:44456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nA8OT-0002UH-JZ for larch@yhetil.org; Wed, 19 Jan 2022 05:40:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nA8IR-0006wV-DZ for guix-devel@gnu.org; Wed, 19 Jan 2022 05:34:31 -0500 Received: from [2a0c:e300::1] (port=38436 helo=hera.aquilenet.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nA8IP-0004xG-JR for guix-devel@gnu.org; Wed, 19 Jan 2022 05:34:31 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id E204840E; Wed, 19 Jan 2022 11:34:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1KuD6Zh7PX7h; Wed, 19 Jan 2022 11:34:23 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DFE9A3B6; Wed, 19 Jan 2022 11:34:22 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Attila Lendvai Subject: Re: using an SRFI that is not available in Guile References: <6vmHCdZdAWsjqvLgmVNEZclQ-JbdRJLfGzLNphX3EbevcslD-_TkMuHA1MwIylOfbe3DkDXYCbx5WT_Q44sC1Qed5MsBUg2xxZKhUbChGGs=@lendvai.name> <87iluhf5ci.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 =?utf-8?Q?Niv=C3=B4se?= an 230 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 19 Jan 2022 11:34:22 +0100 In-Reply-To: (Attila Lendvai's message of "Tue, 18 Jan 2022 17:06:28 +0000") Message-ID: <87o848aua9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: E204840E X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a0c:e300::1 (failed) Received-SPF: softfail client-ip=2a0c:e300::1; envelope-from=ludo@gnu.org; helo=hera.aquilenet.fr X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665 autolearn=no 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: , 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=1642588851; 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; bh=NM2heQojKfWQrVn3r0HTzwyafnqJU/EGqSZXBki6XOQ=; b=poFWw0AM+OFakLMtnFc6FtN4KWSgUR33Kqq8672osny6eyrfXpKxIbU+3p/Q4P8nbq0mqm Y4/kWbtZf3951WFoTngc+tiLulH6MfVeFZKnEUFX7y5cxgDF4ARRqWmRbM6SVF30c4PMYv nQaCZmb81LfThR9QDGwV4oFy3qVUEm3qFpjpNuc1aG4lrR9hiQPZsJMPGZ2O6/wf3xLWsT yn1+44gkeRQ057QL9LQz4HrPS9GsI/VDu1tHUcjVNEANMpHAeOJslGvkiBn9dhpnVtb5PQ 4hOI96qwFULamo0HjFmAIlbqpfIIdoHQWOOpnPGN9EbtW5vTBUiluUvWO5IBDg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642588851; a=rsa-sha256; cv=none; b=n8xqfGKqwzrdPXzdERSs7FSlknQ1mn+tDfmLWPKTjdYRxKlqKZ20LJFgJ4+npJTS412FyK BxiyeOCuL4OIqUiaU8ERD9CrYlRC9HeFT5oVDXOBSQ9XTBjft8JtUqEQaAemICvywtzPwV sKHtFY/q7IAhl2/aVqD7LHY6IuUNnNc7HcPjM4gvy7l8A8bhnRw7XohMfMgYDnwHSekZ0p dHeOY3LXtJKdLUjKTByrSFiQeRGpP7ydjUuaU1fD99kHsJZDrF9eMUIOTrmhSS0y1L7vtS 05OYMse1nxshh/N7cQ06TQFEclVGX1kNxeiFRiefQz6Oo6cnQ1Z+Z41LS3vZkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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.62 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: DA0882A8C4 X-Spam-Score: -3.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: uVtLz9ePa880 Attila Lendvai skribis: >> There=E2=80=99s no widespread =E2=80=9CMaybe=E2=80=9D idiom in Scheme; o= r rather, people use >> TYPE | #f as a way to approximate =E2=80=9CMaybe=E2=80=9D. It=E2=80=99s = not 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 wo= uld >> 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?). How about using =E2=80=98*unspecified*=E2=80=99 in those cases? Out of curiosity, in what case do you need to represent =E2=80=9Cunset fiel= ds=E2=80=9D? I think in most or all of the existing configs, fields always have a default value, there=E2=80=99s no =E2=80=9Cunset=E2=80=9D state. Thanks, Ludo=E2=80=99.