From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yHrULnfegmBmQwEAgWs5BA (envelope-from ) for ; Fri, 23 Apr 2021 16:49:27 +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 ED6MKnfegmDpDwAA1q6Kng (envelope-from ) for ; Fri, 23 Apr 2021 14:49:27 +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 7389DDC6A for ; Fri, 23 Apr 2021 16:49:27 +0200 (CEST) Received: from localhost ([::1]:51358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZx7W-0008Bw-Lf for larch@yhetil.org; Fri, 23 Apr 2021 10:49:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZx7O-0008Be-EP for guix-devel@gnu.org; Fri, 23 Apr 2021 10:49:18 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:54143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZx7K-0006sZ-Mv for guix-devel@gnu.org; Fri, 23 Apr 2021 10:49:17 -0400 Received: from nijino.local (194-96-9-9.adsl.highway.telekom.at [194.96.9.9]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FRccf2g2mz1LWpG; Fri, 23 Apr 2021 16:49:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4FRccf2g2mz1LWpG DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1619189346; bh=dInHoNcHTDf7ACtzseBpuIt2NuN9nmVf8XdsxtMXPZI=; h=Subject:From:To:Date:In-Reply-To:References:From; b=WdYXEkWtSc418A2LzbyaEAVUuWtoTDNMnWzxDi6uCl6Jxrol0dEuAFo/ZWhoo5MAZ iKDaOaOnidKTX6u4iYOi3naf4cPgdXU8tLDf/bF/5kvxocj8kL3ryPjqrV2DGbJqOp VdbQ7l1l5JLtp4B5VB5qXZQE6FzP6kOVkU7Z0K1E= Message-ID: <0567efc70b7282ff6f40173cba74a61ce2647644.camel@student.tugraz.at> Subject: Re: What's the meaning of the percent sign in variable names From: Leo Prikler To: Luis Felipe , guix-devel Date: Fri, 23 Apr 2021 16:49:05 +0200 In-Reply-To: <56kdRcoBgRuaTJ3WDZuJafflQQ4gld466rsxEpaHBkAv63kjjShKEEaQyL3n01WgUFyuUHpqLtW9VuZyeV6H4_C6NdB5nXd7BGxYJZ1UbXg=@protonmail.com> References: <56kdRcoBgRuaTJ3WDZuJafflQQ4gld466rsxEpaHBkAv63kjjShKEEaQyL3n01WgUFyuUHpqLtW9VuZyeV6H4_C6NdB5nXd7BGxYJZ1UbXg=@protonmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 Received-SPF: pass client-ip=129.27.2.202; envelope-from=leo.prikler@student.tugraz.at; helo=mailrelay.tugraz.at X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619189367; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dInHoNcHTDf7ACtzseBpuIt2NuN9nmVf8XdsxtMXPZI=; b=ksLfkOKwbb0H/nKcXRcALx/d/39InLBhN/CYQl7s9bIYf3pdk2fNICCQnGJ8CvGEN4raLO zLkDpJpZyrINONNoe6fi5Sm8A5SNsvOlwSn/5RDPErl3+0BIF1R8dglNiUPaWeLrSoCAVZ XlwU6P74EmyjykwS36WlwdHFlFdgIlNTxZRtyQLP7DvM5rjDNbxAUlQXrzPY+LIiO63pY7 nBwbN0aZ++/Uxk2GGeooEmJcCO98+ySVuxfDVJrT1XtFW9CArF//fjYxml5UJcZ2760iuo Xf+Ce0Spaz6J0xVxMUsBaKumuGhlGG00jX+D0dg+e5iOpnoVu+R4fmTxEc/AHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619189367; a=rsa-sha256; cv=none; b=ZV1okbQ8sApSy1+UUPVfPnWrW71mf7XD8a8BbrJJA8SdzsSI483VklqpweiIXru2Xxy4fS sH0zsJ9fS3Iwugt53bGUAJFejwasUsBgRBYrqZa8oesjZ1lTnc0kjiFN/4GkpAzjbZE6m6 sJ7Ui8k9UQoan0L8NFWst+VJRDr/TwbZQQSidDpjbi3SLK++aH2bTebWXJgtcZQQof4MYe qe4+6qLZ5PWXl3U++Z8gZB+nWoAxRUCnHurMYgoc7PoEVdYa6VTaV7W33bJyEeMssfcNyC THaPJyqJR3wMHWhJSRlOGncuzedk9JTGLvIXQqkYO5X7RyIV4Hgaj8zRjSsU9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tugraz.at header.s=mailrelay header.b=WdYXEkWt; 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-Spam-Score: -1.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tugraz.at header.s=mailrelay header.b=WdYXEkWt; dmarc=pass (policy=none) header.from=student.tugraz.at; 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: 7389DDC6A X-Spam-Score: -1.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: SC91wnSFvRRH Am Freitag, den 23.04.2021, 14:22 +0000 schrieb Luis Felipe: > Hi, > > Are all these constants (%base-packages, for example)? Is this a Guix > convention or does it come from Guile? Although looking at Guile's > Variable index I see many constants in uppercase, and also some > variables prefixed with the percent sign, while Guix' Programming > index doesn't seem to list any uppercase names. The tendency to prepend variables with % certainly comes from Guile or more generally Scheme. The upper case constants in Guile likely come from C, where this convention is more popular and IIUC often concerns integer constants, that are in some way important for the C side of things (think of stuff like OPEN_READ). Since that is not a concern for Guix, a package manager mostly written in Guile Scheme, we can prefix our constants with a percent sign. Regards, Leo