From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 iHJ8ARjc52KBoAAAbAwnHQ (envelope-from ) for ; Mon, 01 Aug 2022 15:58:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SE19ARjc52I1GgAAauVa8A (envelope-from ) for ; Mon, 01 Aug 2022 15:58:48 +0200 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 E9F701FC1E for ; Mon, 1 Aug 2022 15:58:46 +0200 (CEST) Received: from localhost ([::1]:33574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIVwT-00086A-VI for larch@yhetil.org; Mon, 01 Aug 2022 09:58:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIVo3-00006I-9u for bug-guix@gnu.org; Mon, 01 Aug 2022 09:50:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIVo2-0005p0-Pn for bug-guix@gnu.org; Mon, 01 Aug 2022 09:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oIVo2-0006HD-FH for bug-guix@gnu.org; Mon, 01 Aug 2022 09:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56799: (gnu services configuration) usage of *unspecified* is problematic Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 01 Aug 2022 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56799 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 56799@debbugs.gnu.org, attila@lendvai.name Received: via spool by 56799-submit@debbugs.gnu.org id=B56799.165936178424096 (code B ref 56799); Mon, 01 Aug 2022 13:50:02 +0000 Received: (at 56799) by debbugs.gnu.org; 1 Aug 2022 13:49:44 +0000 Received: from localhost ([127.0.0.1]:39807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIVnk-0006GZ-0e for submit@debbugs.gnu.org; Mon, 01 Aug 2022 09:49:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIVni-0006GK-TG for 56799@debbugs.gnu.org; Mon, 01 Aug 2022 09:49:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIVnd-0005kN-2a; Mon, 01 Aug 2022 09:49:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=2ekT+tTRENRxdGBSfhjt6g28WlZFWc2oPcP+lcokCTM=; b=erwOkQzSS8DbooHJ6ioE cr+Cpd3GBMdSKbf73tFtlfdi9Zbntwg43xiQuTc36Zz/NsjtaGZGUxsVnwBhKi7YBNaY20MIAoZz4 wkMK4Xvt+F7NwqLyZir4sEPMJe96f570Y2ZIRlLLDaC4rCLCgQFBFUwxjru8PJ0+1wOHNBjLs1jdJ JdhyHDrtP+0dTPVFjtmaajtwD9YYVPZ6KqaUXtRbxg+BKmexzz71wL3xf+VzhELzqT4mpkqV/MOIR 9EZ95QCWlxBNgXBi2bHZqxdx77jqMXSl1+DheNbU/eglnfLczQAefQ5XYj2PGoJNBtRFw7gQpJor8 tbTKY0wQQpqVsw==; Received: from [2001:660:6102:310:f6b5:dff0:8fea:f7c9] (port=48522 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIVnb-0005Bh-Pt; Mon, 01 Aug 2022 09:49:36 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87o7xa8qxt.fsf@gmail.com> Date: Mon, 01 Aug 2022 15:49:32 +0200 In-Reply-To: <87o7xa8qxt.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 27 Jul 2022 12:23:58 -0400") Message-ID: <8735egxedv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659362327; 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=2ekT+tTRENRxdGBSfhjt6g28WlZFWc2oPcP+lcokCTM=; b=P4g0ns4brl6n4+8i/niL75EM2FkGKaP8ALis6xvQX939c6daB0tVhd3FuGtx+t6RoAXG0w GekyAfIIEEmqtLekHQLWm49Uw8b2szd6y0UTGnXqQTIqHHlroEU2jsnEaxNpcs/yyVkKs9 C7muqcc0JyEKIPwLSkGFnlAv8X18pS53Hv6Bj5ccFa1gbiQMecvxeO4nKNMsDoMLgX60g5 epPIf80ZIBYBxRqxqOKdru6+pGId10ee2I4gdFcpinl0ijBX48gE0XVV8rYQ/vA7886eTq d+fXhWAhkdzHqjlxDTYB4IHkfwzGUgNXRhJpIErFTnpIvdtkRvBrHqkpOUfpmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659362327; a=rsa-sha256; cv=none; b=Envvf2sFhCpmvo+eil3ecTvoQfFIxOYFUygLMl7/+ztiqGuGswVj2N0OOxHJ11CKCfEsZe ezAOKLCeFl5fDelCCdFmC92xXqF7FSR/2KkHyVXmX+E/uLVFYbzDBAyEiC+FE1iX0+Hofx xoQ4AX94prNaJC6O0SSArChEFNGny+rqBj5omFMC/Aixtj189KP6CDdfmdZIPxwx9nffRo C1CCTummSLVz6RB/gwheuVVmNW2O7ruxYt9nEPk66oDLN7/nrU8HFzYCZyeVwSOeHLG1ZA jskYtu1K3jfK+CunvWtfJ3LsEHKlfzUbFnAX7jTRO+XNjx6KNkJSz7LZUoZQqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=erwOkQzS; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.72 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=erwOkQzS; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E9F701FC1E X-Spam-Score: -4.72 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZrXMKKU81Cme Hi! Maxim Cournoyer skribis: > Since commit 8cb1a49a3998c39f315a4199b7d4a121a6d66449, the > define-configuration machinery in (gnu services configuration) uses > *unspecified* instead of 'disabled for an unspecified field value. As Attila wrote, the rationale as discussed in was to specifically use a =E2=80=9Cspec= ial=E2=80=9D value without a read syntax in lieu of a symbol like 'disabled. > While this is indeed an improvement in readability, it introduces an > extra complication: because this new value is not self-quoting, it > cannot be used as is in G-Exps, and values using it must be carefully > expanded outside the gexp context, which is error prone. Could you give a simple example of how this can happen? In my experience, one would use =E2=80=98define-maybe=E2=80=99 and appropri= ate field serializers such that *unspecified* never goes through. Previously you=E2=80=99d check for (eq? x 'disabled) and now you just check for (unspecified? x). Thanks, Ludo=E2=80=99.