From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OPkPCggqz2BbEAAAgWs5BA (envelope-from ) for ; Sun, 20 Jun 2021 13:44:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8OPuBQgqz2AfSgAA1q6Kng (envelope-from ) for ; Sun, 20 Jun 2021 11:44:08 +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 E52CAB425 for ; Sun, 20 Jun 2021 13:44:07 +0200 (CEST) Received: from localhost ([::1]:60730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luvry-00059g-OM for larch@yhetil.org; Sun, 20 Jun 2021 07:44:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luvru-00059Y-Ez for guix-patches@gnu.org; Sun, 20 Jun 2021 07:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49875) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luvru-0007Hx-6p for guix-patches@gnu.org; Sun, 20 Jun 2021 07:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1luvru-0001fY-5c for guix-patches@gnu.org; Sun, 20 Jun 2021 07:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48729] [PATCH v5 24/25] gnu: Add bitmask. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Jun 2021 11:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48729 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Raghav Gururajan , 48729@debbugs.gnu.org Cc: Jorge Gomez Received: via spool by 48729-submit@debbugs.gnu.org id=B48729.16241894206379 (code B ref 48729); Sun, 20 Jun 2021 11:44:02 +0000 Received: (at 48729) by debbugs.gnu.org; 20 Jun 2021 11:43:40 +0000 Received: from localhost ([127.0.0.1]:33188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luvrX-0001ep-V2 for submit@debbugs.gnu.org; Sun, 20 Jun 2021 07:43:40 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:52010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luvrW-0001ef-7X for 48729@debbugs.gnu.org; Sun, 20 Jun 2021 07:43:38 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by baptiste.telenet-ops.be with bizsmtp id KPjc2500C0mfAB401PjcEB; Sun, 20 Jun 2021 13:43:36 +0200 Message-ID: From: Maxime Devos Date: Sun, 20 Jun 2021 13:43:17 +0200 In-Reply-To: References: <20210618065416.22391-14-rg@raghavgururajan.name> <20210618065416.22391-24-rg@raghavgururajan.name> <9da322662c0eb0b552f9e2dbaebb8a71111754a2.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-fQHfyVIBXgI029VXej05" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1624189416; bh=ggFW9iQEWWkjiEYFMqscP0966Zem4GI6MTs0hPocXU8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=SKamTkOm/xLR259EHovBEsqIkc01tPHmDcFQ9z9hxR3Kg2SGGvcaQNdUDi7vWYgRj 5nQ3Aplq4jqD13ZGd/ZCiOrZdrBHYMK9/DG4EX70lmtbNTbj/ZY5Aj/LQaBDW3BDr6 UuZHmY1l61JGsCc/7uS/M7vilERMTYTKDx4nvXSDauc7IMRDJDEcpjmLbZldhPGR1W DMqU1kRppVi7QHZv+cPSB179nNy0IFo70ZrVsfXtdRRW8y19nF4YIpYH5NLDVJzQDr +b1pzTEpfDBnKz54dDckY149xGdxHElCyfFD4LvPQdI5uCIsMX1H/WhcAmzQd03MJQ /wRcVmoZbnejQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: E52CAB425 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: L604Ly2OuuRP --=-fQHfyVIBXgI029VXej05 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Raghav Gururajan schreef op zo 20-06-2021 om 05:52 [-0400]: > Hi Maxime! >=20 > > Snippets can be G-expressions. Personally, I'd go with a G-expression > > instead of an S-expression, because > >=20 > > * that makes it more obvious it is staged code, and not, say, SXML > > * G-exps are cool [citation needed] > >=20 > > > + (build-system go-build-system) > > > + (arguments [...]) >=20 > I see. Would you be able to illustrate with a snippet please? I haven't= =20 > used G-exps much. Here's an example, from the guile-2.2 package, using a S-exp: (snippet '(begin (for-each delete-file (find-files "prebuilt" "\\.go$")) #t)))) and equivalently, using a G-exp (snippet #~(begin (for-each delete-file (find-files "prebuilt" "\\.go$")) #t)))) Basically, replace the ' with #~. Here, using a G-exp doesn't buy much though, besides making it a bit more obvious the code is staged. G-exps can be useful if, say, 'sed' or 'tar' or something needs to be run during the snippet. (E.g., something like #~(invoke* #+(file-append tar "/bin/tar") args ...)) Greetings, Maxime --=-fQHfyVIBXgI029VXej05 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYM8p1xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7gjQAQD92P6XgEt/eFzc75nnMrG7nVWF g2NXinGeq4SydYWyYwD/Qc5TzwHucKb4VUlEG55tbtSWO99aT64QhLbNLsSe0go= =a+1d -----END PGP SIGNATURE----- --=-fQHfyVIBXgI029VXej05--