From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GE5nMsgR2mVHPAAAe85BDQ:P1 (envelope-from ) for ; Sat, 24 Feb 2024 16:56:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GE5nMsgR2mVHPAAAe85BDQ (envelope-from ) for ; Sat, 24 Feb 2024 16:56:56 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b=MEG0jpNP; dmarc=pass (policy=reject) header.from=ultrarare.space; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708790216; 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:dkim-signature; bh=43ZjeaKIFsAXF0UhMVZ6jCVf5Su2vT/20yppV+NPdx0=; b=nV65CRGbriBL4m+nV/A6zrV+AEcorTz4ibwyL214OMCZoe4/26IafWyTRC1uB44ilR1Z+H NcZ0SdyqOpmcicfNRsG0PnB0zshMQE/MdHnD+VQqWPiNlaxMBDwbRKCR3GgmCQteV+/W1O tcqAgpBmsxxxL1VizuyMiQmBTWPYjnZfiApOVS4EITxh+e7BqEXPNhpKBJ6nRKHkrVhCIQ PQLDHlQxIzVhcXXm4MF1r2QAei4cOuy83o3/I3UYmAG1pd+en09jxvxncoYaPgKGP1mvs4 gDL5NGCMEPvs9kFsfuk6/3PIyaEZJHKDWvU3oTUBeNNbMJExvWIi0joLaGZE1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b=MEG0jpNP; dmarc=pass (policy=reject) header.from=ultrarare.space; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708790216; a=rsa-sha256; cv=none; b=ZVGwY3LGVNDlO0xoIkne2zZdQeVQtu4PfecO5ZpXDXJKYiTGLrViLwIkhT4bnmUOB80As2 CL6QKVF0Cp2L85yYDadcaE2yFjDa2lIiCMsVRRSxCRdTTEw03ZCOB8CnJx/sVwVc53dcQi W6eL+SvP37k7SAP52810G645TSFHZ78NbKsR4RsrT6YgAIKCqJyn6zSWEXpoOSnEuK+yKI KGrDKBbj1lGQoNyme7/r4BgNAzcZXRgHVmsTgnOXzi7GiFjm7RzQYlkwx0IAwUTuW6leFi /Zbi8GAysQdB2Ns1Wdmzrm3CDbBDkEKLnIeZS1Uq9re2sM8pN6str3T8qc8q6w== 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 AC9D9412BD for ; Sat, 24 Feb 2024 16:56:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rduO0-00018o-9X; Sat, 24 Feb 2024 10:56:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rduNy-00018Z-KE for guix-devel@gnu.org; Sat, 24 Feb 2024 10:56:22 -0500 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rduNx-0007JX-48 for guix-devel@gnu.org; Sat, 24 Feb 2024 10:56:22 -0500 Date: Sat, 24 Feb 2024 23:55:12 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1708790166; h=from:from: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; bh=43ZjeaKIFsAXF0UhMVZ6jCVf5Su2vT/20yppV+NPdx0=; b=MEG0jpNPxm5ZiyWVrBOZlBIkBLege/yJTAmt8C0ILV2AjsFy1T1LDwPBvoM6Vqd0VAQ1xc 6h8Q0W1w3v8vquLRkNgIXDoqf7iQ76gj+Ybja6UpxoJh03DVqtIVjKA346KJ01Vk0q+wnw RE4nxAqLrK+XxR9vIKKbI8LO05RPYP3AMh4SI2HZHNU48gD3vJgHv3vCCr7uNudKkR2SDF 63/Q22NQSr1uwd89E/All3dTmhWA6NQDFZULN1SPEDqn0N81z8ib4jVxNgeofEJCeE4f2d quwSuT1VJebxj5AOUQeIMzdhzQIGTpgtJvEZjOaHEzq6udecV1Mmlgbafujbdw== Message-ID: <878r39j1r3.wl-hako@ultrarare.space> From: Hilton Chain To: Hartmut Goebel Cc: Guix-devel Subject: Re: Simple design question for schemers In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.47 X-Spam-Score: -6.47 X-Migadu-Queue-Id: AC9D9412BD X-Migadu-Scanner: mx13.migadu.com X-TUID: ShWVGyPJz0nO Hi Hartmut, On Sat, 24 Feb 2024 21:47:41 +0800, Hartmut Goebel wrote: > > Hi, > > I'm about to refactor the Tryton packages to the (not so) new style. Now = the trytond-xxx modules all share a basic list of native > inputs,like this: > > (native-inputs > `(,@(%standard-trytond-native-inputs) > ("trytond-account-fr" ,trytond-account-fr) > ("trytond-edocument-uncefact" ,trytond-edocument-uncefact))) > > Now I wonder what would be the most scheme-like way for doing this in new= style? > > Using "apply list": > > (native-inputs (apply list > trytond-account-fr > trytond-edocument-uncefact > %standard-trytond-native-inputs )) > > Using "append": > > (native-inputs (append %standard-trytond-native-inputs > (list trytond-account-fr > trytond-edocument-uncefact))) > > Using a custom function "extend": > > (native-inputs > (extend %standard-trytond-native-inputs > trytond-account-invoice > trytond-purchase > trytond-sale)) > > Using a custom function "@trytond-module-native-inputs": > > (native-inputs (@trytond-module-native-inputs > trytond-account-invoice > trytond-purchase > trytond-sale)) > > Opinions? You may want to use =A1cons*=A2: --8<---------------cut here---------------start------------->8--- (cons* trytond-account-fr trytond-edocument-uncefact %standard-trytond-native-inputs) --8<---------------cut here---------------end--------------->8--- Thanks