From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IMUGFK3z2WVqCgAAe85BDQ:P1 (envelope-from ) for ; Sat, 24 Feb 2024 14:48:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id IMUGFK3z2WVqCgAAe85BDQ (envelope-from ) for ; Sat, 24 Feb 2024 14:48:29 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708782509; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=4G0kl9O7zVqvewKV3U78cr6bAbl3HfmJHhuc7mTLP6Q=; b=eJ2FX/xHfMvXW21v4L65ArUeaoUb0q6bFFJa8nhZHnt8n/4RbxS/uKrFR29BcutqF9XvjB C9ILc8/bxnHbaEXlDorhMnhPp+WMfDQqYL2rQu0uZkhAdBdSrZ92yYedl2GQC4JVhPfq7Z ay8D7hIWt2iuf7iJ+3hqK7qI7tLSepuI6ggXnupABSd7qzHS5FdZFYHUv5eTaXR4X8BAWV ppC4dBNWZMtZY2UfRO1j+oLMr44bNMZohnkFnArU5uTH5waAFkCl66WA2mwR4XnSv41bv/ S7m63DrmOvo15S8ZTxY03iOzgca8bGOPAZ5gUP5pdi8pw6cPsf2beREuyYsV6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708782509; a=rsa-sha256; cv=none; b=e1mnDvWkWr7GyfCPxK5Y1ehZyd1HoRXzHoHVqUzyD+RwW7nQwIntQtFXgDJ/xbcHJRGQT/ aGQFy056OMnqm3Qzpig0o5QeHNEohw2kMb+WdiXfuURhyslr2yTQq1QR3/EnK9D9713oeP cofIdqKy8HI30rKC0myGTx8SFcO0+8KC6XJ+6X0ONzCgrCZrBxKMtoXUJbErerwqevCe43 JU8f6/xhM3ekXqSqPxpclb4PIUI59kQzjBaEfT13GKYFrpO1AqaFf3XDVWMz4ms7Z2WBQT MxpSLo6MZsg7dzT5w5usKX3z6r5jMReg5lB3GC/BMjKITcs4T5cVM53pnWxDmQ== 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 17B621B884 for ; Sat, 24 Feb 2024 14:48:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdsNe-0006YQ-Gs; Sat, 24 Feb 2024 08:47:54 -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 1rdsNc-0006Y3-EP for guix-devel@gnu.org; Sat, 24 Feb 2024 08:47:52 -0500 Received: from mail03.noris.net ([62.128.1.223]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdsNZ-0001Ah-Sc for guix-devel@gnu.org; Sat, 24 Feb 2024 08:47:52 -0500 Received: from p57b08c0d.dip0.t-ipconnect.de ([87.176.140.13] helo=hermia.goebel-consult.de) by mail03.noris.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) (envelope-from ) id 1rdsNU-0003TB-6L for guix-devel@gnu.org; Sat, 24 Feb 2024 14:47:44 +0100 Received: from [127.0.0.1] (hermia.goebel-consult.de [192.168.110.7]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hermia.goebel-consult.de (Postfix) with ESMTPS id 7F8C25F549 for ; Sat, 24 Feb 2024 14:47:41 +0100 (CET) Message-ID: Date: Sat, 24 Feb 2024 14:47:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: de-DE, en-US From: Hartmut Goebel Subject: Simple design question for schemers Organization: crazy-compilers.com To: Guix-devel Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Noris-IP: 87.176.140.13 Received-SPF: pass client-ip=62.128.1.223; envelope-from=h.goebel@crazy-compilers.com; helo=mail03.noris.net X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=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=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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.07 X-Spam-Score: -6.07 X-Migadu-Queue-Id: 17B621B884 X-TUID: 8qjIg3AA2HU6

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?

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |