From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KDNaNt5wuWI8VgEAbAwnHQ (envelope-from ) for ; Mon, 27 Jun 2022 10:57:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YAZfNd5wuWIdZgAAG6o9tA (envelope-from ) for ; Mon, 27 Jun 2022 10:57:02 +0200 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 9E6333D6B2 for ; Mon, 27 Jun 2022 10:57:02 +0200 (CEST) Received: from localhost ([::1]:51400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5kYH-00089C-HZ for larch@yhetil.org; Mon, 27 Jun 2022 04:57:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5kXa-00087t-Qs for guix-devel@gnu.org; Mon, 27 Jun 2022 04:56:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34086) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5kXX-0005zm-AS; Mon, 27 Jun 2022 04:56:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Dzx8JJXkzKZe1/4Pq2ZBHg0/srOSYVeroBKGSekDQ5w=; b=VX3dqJWVoEPO2+udDpey PMHcRvMkk6lFL6/8s9h0rDv5c+rV8JMChZ1mfNktx8CYjG2+r3PpajKVyFiG+ixgr6Xjyrq+O6NWD I8WzF1Qd6afMgiDw+tgYPHgW0p1ZkSXl68jpDbBqVvwIsWXl/miwhjNICznYS2s2c6d4JgRlF5eS4 7OED8+py2Xrd/ERvkAt4wVTGME4ii1UxrU6h6Te6NpFKNbn6SNp/5OEOBw/X6T25Kvr3PvOt7eYNf YuXx/Kvq0SAhM+6kcTbr2ITViCHAjct42n5F+5wfQMEu1ySHZx3isDOVAi8jSX7+1YhCejZYOEjxd kF5+8ppk4iejsw==; Received: from [193.50.110.235] (port=58380 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5kXW-0006VW-JM; Mon, 27 Jun 2022 04:56:14 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: jgart Cc: Guix Devel Subject: Re: reader macros for hidden packages References: <20220625222700.GC3148@gac> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Nonidi 9 Messidor an 230 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour de l'Absinthe X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 27 Jun 2022 10:56:12 +0200 In-Reply-To: <20220625222700.GC3148@gac> (jgart@dismail.de's message of "Sat, 25 Jun 2022 22:27:00 -0500") Message-ID: <87ilomjxhv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656320222; 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=Dzx8JJXkzKZe1/4Pq2ZBHg0/srOSYVeroBKGSekDQ5w=; b=JkynR+uUda+JN+95eWQOC2y0bJkL0zr6bCFMCWa71m4Zu+jCJ7+Gdj4AjzfrVAV42qVfw/ kkLqGn/jr1g3ufdgDx1lwO3CKMRm+g0UIed/1D6ltqK5i33rKDOJhAnUkfcWi52wWuCA9X bB2IK/dujFZ2blObcPy100i4gIErIc3LE07DmyR4+NtkvPUsnmoXEZkyFIi64ztOCgtKva FPOYfei4q8g2eZBTQRFLWNBMwPWxTOISDUwXB0LdfJSrD/kJJ+mY/rln2s8frWJsb9kGcc A0FkYUjdMXIohWRxmCCZslhsDEFNTvtUHo7c0JoiynyLzup9/oG2L21jNgrxtg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656320222; a=rsa-sha256; cv=none; b=YHjBM6gvVnLWJKjAN4GmBJVahP/o6uWKdK1SJWRdKxhBWALBCDKfWMUwn9JCPX0JHHKnBA REh67Hju7RMrdRLMcdMXDDhnBecC6mHF2UxpaDhevjbjzGjUVnwZUIgHnAm6inbnA9QgF1 KBsJ4D29yFw4ccwDgOQ10oPlYmPnu2fPtUgcvjqy6cyYeJs7raHlvO8sxv5RU9T8PJY+aH j7JHW8W56WzMDUP/oTTtaMF0cyRtdyi7yhrbU/HetfaSA8DDYEtp+You8kSRAAVnqAHE2u CzVTV7NkpRcftDXi0fG1FbbFJFiWyfno9dhzOJdvfw2oGdJTk5UgD3yOIByu2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=VX3dqJWV; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -9.25 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=VX3dqJWV; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 9E6333D6B2 X-Spam-Score: -9.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1ZQsLq5GnR0h Hi, jgart skribis: > Out of curiosity, is it possible to make reader macros like this with gui= le? > > ``` > @hidden > (define-public python-httplib2 As Maxime notes, =E2=80=98read-hash-extend=E2=80=99 is the only reader exte= nsion mechanism, and it only supports hash-prefixed extensions. That said, I very much recommend against reader extensions because they don=E2=80=99t compose (the extension is installed globally), they are not namespaced, etc. I find it OK in very narrow cases, such as gexps, but I wouldn=E2=80=99t use them anywhere else. The good thing is that we can often achieve concise syntax with sexps as well, like: (define-public python-httplib2 (hidden-package (package =E2=80=A6))) HTH! Ludo=E2=80=99.