From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 2PZvOXXhG2JHgAEAgWs5BA (envelope-from ) for ; Sun, 27 Feb 2022 21:39:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WLwtNnXhG2IVwgAAauVa8A (envelope-from ) for ; Sun, 27 Feb 2022 21:39:17 +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 5702A14F11 for ; Sun, 27 Feb 2022 21:39:17 +0100 (CET) Received: from localhost ([::1]:51706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOQK3-0000YJ-6S for larch@yhetil.org; Sun, 27 Feb 2022 15:39:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOQJg-0000YA-F1 for help-guix@gnu.org; Sun, 27 Feb 2022 15:38:52 -0500 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOQJe-0000kW-LO for help-guix@gnu.org; Sun, 27 Feb 2022 15:38:52 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1645994326; cv=none; d=zohomail.com; s=zohoarc; b=g3ZgUSKb3mK6ieWjL4ZdwnJZqM/+R/+IvKvzYK/xUg+HlS2+e1oJnQOnKwro557NCSVZKG3h7DQ93lbpNTHQ4P+lieyYR6rVp3zVt6ZIXRWI11yiqsYMtOKc7E4UHG/bMamYOHO4fYXU8vjZyy2PvybNuNXPHE1k+LRMEbX2Vj8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1645994326; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=3rYOP4vOmiuJSRlNgA/bqmHTWs7ZG/kXvJz/B+RbP5k=; b=MQBg1DetyiQrB2ChqC5HkCfbYXxeD0St8Dtjy5GufQDitM48X0kdN15SiRoNxe+x/G97Nte0Vjjwm6jV9AgrhTPtCDlyEZVbTtoBHFD/zjgUEzIuK4IH6wIlBvECfRnP3nMgclYlXTSCc+rVlo3ty5qgSLDLj/lKORiE7lQvdEk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1645994326; s=zoho; d=rdklein.fr; i=edou@rdklein.fr; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID:MIME-Version:Content-Type; bh=3rYOP4vOmiuJSRlNgA/bqmHTWs7ZG/kXvJz/B+RbP5k=; b=UBAp2BYqwit9mINBL9C8QUPQ5jZPnzfKLnep91z9pedBFgOMKL9NKqAEP966CyP9 cjeEBH3OuMuch6JArRGwMqKF847Fi9hxGqPrJ26YpoyM8aFY67KZC2dV6m9mGaJqZmZ bVUAc2Y6samotKOVJ3r6AaKVGOC6Wgkn9r8wVOTQ= Received: from schwarzy (lfbn-idf3-1-159-220.w90-22.abo.wanadoo.fr [90.22.158.220]) by mx.zohomail.com with SMTPS id 1645994325954279.0951067817688; Sun, 27 Feb 2022 12:38:45 -0800 (PST) References: <87y23nfozl.fsf@rdklein.fr> <877db78dr0.fsf@elephly.net> User-agent: mu4e 1.6.10; emacs 27.2 From: Edouard Klein To: Ricardo Wurmus Subject: Re: I think thunked fields are breaking my previously working code Date: Sun, 27 Feb 2022 21:35:21 +0100 In-reply-to: <877db78dr0.fsf@elephly.net> Message-ID: <8735k4gi78.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.11; envelope-from=edou@rdklein.fr; helo=sender4-op-o11.zoho.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645994357; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3rYOP4vOmiuJSRlNgA/bqmHTWs7ZG/kXvJz/B+RbP5k=; b=buC+Hj+fpSDL/i+qo8fLtSGtMdnBVq+ZkA6ZDl50U0AVr0j5EsI6wPQBe/jvkxBm+j+hLM uXGtVkzVh7s7+OinWhyeWMmkw8SS0i8V0mDnBwmtP3OlbycBBCzMtQ5m05V1OiDjyJ/zj3 aMLcXgjOztmmsr7ze7Q3fT4kx2tQ4EhugAeb924w2Gs+RLdzRgstZhJAUnjUDP5qPL3YAs N2u6lf+9rbuF2sVCQEbuGQUmRx1hNRfdVK6s3u075g7SmGJG8BGF+bFj+BK7RxT0oZorDh UFiz9qDBxftLhxknhfYyjua9YWnP5KDMpyS4yg9SF3qeigqkDDPaVjPf80tSMg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1645994357; a=rsa-sha256; cv=pass; b=olD4fruFMVgRezQIU75zf13Nv6TV4MM3mZe88yxsuFE7jYS7vY/R+wZgy18dVjGJsWL6XR 4yIdndZEKIgo/HrbJfoWtaYnoopgZTnboCJPTnGR8ELrIPZIdnYMVDSe39dIWNtq7zjrM8 9MsaKY5Kp9v4mop4A0ZawYqbfEOL1MCflPX3d0Gj7emkoZcwnjhflC3NRtQgcqwxlJ+Pnj IAHsS+kuiGVj7nSqWEBRdfF17f5FufTX8NN33C/sBsDkU5LzMT2zQt7jzgn2yQwxh4MWN0 OJrhbWIOgMpTZzp5jLvdGc6A9xffnq/5jf8NBwvuXqFGq7WnNoGENpSsXHmS/A== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=rdklein.fr header.s=zoho header.b=UBAp2BYq; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.60 Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=rdklein.fr header.s=zoho header.b=UBAp2BYq; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5702A14F11 X-Spam-Score: -6.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: oU1/ShZ/Rvq1 Thank you so much Ricardo, you have no idea how big of a thorn you removed from my side. I owe you one. Ricardo Wurmus writes: > edk@beaver-labs.com writes: > >> For example, given that "minimal-container" is an operating system, I >> can do the following: >> >> (set-fields minimal-container ((operating-system-host-name) "toto")) >> >> But not: >> >> (set-fields minimal-container ((operating-system-label) "toto")) > > In Guile we usually try to avoid mutation like that. The records API > allows you to use inheritance instead: > > (operating-system > (inherit minimal-container) > (label "toto")) > > Thunking just means that the field is a procedure that returns a value > when called with no arguments. The records in (guix records) are not > plain SRFI9 records, so I would not expect set-fields to work at all.