From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SJ/mCXyk819nCgAA0tVLHw (envelope-from ) for ; Mon, 04 Jan 2021 23:27:56 +0000 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 GLy8BXyk818UVwAA1q6Kng (envelope-from ) for ; Mon, 04 Jan 2021 23:27:56 +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 AFFF99402C8 for ; Mon, 4 Jan 2021 23:27:55 +0000 (UTC) Received: from localhost ([::1]:41744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwZGU-0001h5-Eu for larch@yhetil.org; Mon, 04 Jan 2021 18:27:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwZFh-0001g9-Cv for guix-devel@gnu.org; Mon, 04 Jan 2021 18:27:10 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.157]:41820) by eggs.gnu.org with esmtps (TLS1.2:RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwZFe-0000oR-L3 for guix-devel@gnu.org; Mon, 04 Jan 2021 18:27:05 -0500 X-Interia-R: Interia X-Interia-R-IP: 89.64.43.25 X-Interia-R-Helo: Received: from localhost (89-64-43-25.dynamic.chello.pl [89.64.43.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by poczta.interia.pl (INTERIA.PL) with ESMTPSA; Tue, 5 Jan 2021 00:26:57 +0100 (CET) Date: Tue, 5 Jan 2021 00:26:44 +0100 From: Jan Wielkiewicz To: raid5atemyhomework Subject: Re: A new paradigm for modifying operating system declarations Message-ID: <20210105002644.383d317a@interia.pl> In-Reply-To: References: X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Interia-Antivirus: OK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1609802817; bh=vwzmUdcyRbWXW/LFFHdsTZlKbUyf8FVcb565TKSLHeM=; h=X-Interia-R:X-Interia-R-IP:X-Interia-R-Helo:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailer:MIME-Version: Content-Type:Content-Transfer-Encoding:X-Interia-Antivirus; b=YrRKm9M/jkELvnso4C7NG6ftccx+el3YGnBDa4tmpruV2oR6KvnkmaJmg5k5F0lXP PlC+UnC6J2nzRUZEjiB3LvyutudTOUJu3OIxWJWBJk6v97gmMhLhZs6X6g3xayQ61L 1nF6tEOUJrPGgUewQkUVoT1RepmQKo7k8tCLe7zQ= Received-SPF: pass client-ip=217.74.65.157; envelope-from=tona_kosmicznego_smiecia@interia.pl; helo=smtpo.poczta.interia.pl X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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@gnu.org" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=interia.pl header.s=biztos header.b=YrRKm9M/; dmarc=none; 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: AFFF99402C8 X-Spam-Score: -2.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: Pu7n5YI5UjKM Dnia 2021-01-04, o godz. 15:38:38 raid5atemyhomework napisa=C5=82(a): > Hi guix-developers, Hello. > ```scheme > (install-zfs > (operating-system > (kernel linux-libre-5.4) > ; ... other fields ... > )) > ``` I don't like this way of nesting the OS declaration inside of any other expression. >=20 > ```scheme > (install-foo > (install-bar > (install-zfs > (operating-system > #;...)))) This makes it even worse. > Which brings us back to the `decorate` form, which reduces nestedness: >=20 > ```scheme > (decorate (install-foo > install-bar > install-zfs > operating-system) > #;...) Better but still don't like it. Can't we put the os declaration into a variable and then pass it to a procedure? Say: > ```scheme > (define OS > (operating-system > (kernel linux-libre-5.4) > ; ... other fields ... > )) > > (install-zfs OS) > (install-foo OS) > (install-bar OS) > (install-something OS) > > ``` > Thanks > raid5atemyhomework >=20 Jan Wielkiewicz