From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UJ/JHpr4gWBSWgAAgWs5BA (envelope-from ) for ; Fri, 23 Apr 2021 00:28:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OJx6Gpr4gWBZYAAA1q6Kng (envelope-from ) for ; Thu, 22 Apr 2021 22:28:42 +0000 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 C50A71B643 for ; Fri, 23 Apr 2021 00:28:41 +0200 (CEST) Received: from localhost ([::1]:43362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZhoO-00077C-Tt for larch@yhetil.org; Thu, 22 Apr 2021 18:28:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZhoF-00075a-9U for guix-devel@gnu.org; Thu, 22 Apr 2021 18:28:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58130) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZhoF-0005aD-26; Thu, 22 Apr 2021 18:28:31 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38490 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lZhoE-0000TW-3u; Thu, 22 Apr 2021 18:28:30 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: Add a way to disable serialization support to (guix services configuration) References: <878s5ncjaw.fsf@gmail.com> <87fszoswmc.fsf@gnu.org> <87k0ovd4ok.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?utf-8?Q?Flor=C3=A9al?= an 229 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: Fri, 23 Apr 2021 00:28:27 +0200 In-Reply-To: <87k0ovd4ok.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 21 Apr 2021 11:43:07 -0400") Message-ID: <87mttqt0ms.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-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619130522; 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=euY/7671IO03+jq7Yo8A//+6PIiIcXTkanTw6TpsYAc=; b=QFey+7CT1fd2nJvr5TagLEhVcdAJTFS2QNBTTsc9Z+KEYBqGszxAuYA7VYj2EMs444C0YK /YRut3V7Cm2pDfu1gT4RTLEh1cYtKMdCRzc3c1CMDAWQSpe9fi/+x+zjIpq5hledaQe3A0 zmD4vzDuVvCD432WjHnpNxjqbpxFpYX0tW39tLkzbA/DOxd1lY1ZkEYYAEesCEYljqShDc zThftQ2a7p/dlUdhJLHbc5mnc4KVKQy+w2P8HzNEDjs629Z1dCN0xnpcuU7UGh57D2ljvI FaaBMWuUQxrvalZh88pd4nGUcC0X3sfWZM8QyNf3Gh6FvyE0m0Eg+EhuZSvzWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619130522; a=rsa-sha256; cv=none; b=ZlqCohz1CHVT5m2F+AVl+vp27IpK036vYx8iYm726RSV9bHTxixJbmmWmdhleLnul6tz5C mySOB5FcdO1M3JsEdjPfhwx7gtY2AukUoq4iUnj2+8GqXslhXIYt8i/qdgF2o949lYuf8G ElJ+G0pkufBvP2iMI9YE94292wDt6wdBSl3IRpzXscPLSjkzpjtH6aNWnorb1bp/aJvf8p SFnG8gtVCUW8DKl3Tj13PIMvaMTwewVbBLhNZqqFh7M6NEOxqCONt8B4poUKTuRocwMGMR 91v95k+nQspIVVo4OSP83/C4/cO0fOiLKgQIsiua/V4nvcXUE2On1S90XCvWCg== 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.95 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: C50A71B643 X-Spam-Score: -2.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: GO1u9pTJ5kZo Hi, Maxim Cournoyer skribis: >> +(define-syntax-rule (without-field-serialization definition) >> + (syntax-parameterize ((configuration-field-serialization? >> + (identifier-syntax #f))) >> + definition >> + #t)) >> + >> +(without-field-serialization >> + (define-configuration foo >> + (bar (integer 123) "doc"))) In hindsight, I find this syntax quite inelegant and suboptimal. Wouldn=E2=80=99t it be nicer to write: (define-configuration foo (bar (integer 123) "doc" no-serializer) (baz (string "") "doc")) where =E2=80=98bar=E2=80=99 wouldn=E2=80=99t have a serializer and =E2=80= =98baz=E2=80=99 would? It=E2=80=99s also probably easier to implement correctly. Ludo=E2=80=99.