GNU bug report logs - #15284
wish: make the (name) field optional

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: wishlist; Reported by: arne_bab@HIDDEN; dated Fri, 6 Sep 2013 09:07:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from ludo@HIDDEN (Ludovic Courtès) to control <at> debbugs.gnu.org. Full text available.

Message received at 15284 <at> debbugs.gnu.org:


Received: (at 15284) by debbugs.gnu.org; 13 Sep 2013 23:00:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 13 19:00:16 2013
Received: from localhost ([127.0.0.1]:34924 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VKcLW-0006Vn-Tf
	for submit <at> debbugs.gnu.org; Fri, 13 Sep 2013 19:00:15 -0400
Received: from mout.web.de ([212.227.15.3]:57332)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <arne_bab@HIDDEN>) id 1VKcLT-0006Up-Dp
 for 15284 <at> debbugs.gnu.org; Fri, 13 Sep 2013 19:00:12 -0400
Received: from fluss.localnet ([212.255.235.232]) by smtp.web.de (mrweb001)
 with ESMTPSA (Nemesis) id 0MZleQ-1Vf24p00Q2-00LYvO for
 <15284 <at> debbugs.gnu.org>; Sat, 14 Sep 2013 01:00:05 +0200
From: Arne Babenhauserheide <arne_bab@HIDDEN>
To: Ludovic =?ISO-8859-1?Q?Court=E8s?= <ludo@HIDDEN>
Subject: Re: bug#15284: wish: make the (name) field optional
Date: Sat, 14 Sep 2013 01:00:03 +0200
Message-ID: <1942738.pvRsuMxUva@fluss>
User-Agent: KMail/4.11.1 (Linux/3.8.13-gentoo; KDE/4.11.1; x86_64; ; )
In-Reply-To: <87k3iu2lye.fsf@HIDDEN>
References: <8761ueqq09.wl%arne_bab@HIDDEN> <87k3iu2lye.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart2666339.UzJ6piid3m";
 micalg="pgp-sha256"; protocol="application/pgp-signature"
X-Provags-ID: V03:K0:QX1SvpSMwlXL0MbXUeY8Q7FVeeY7EZcwkqVnVwG7Qu143pJzUP5
 9RMKjO2GuamfGGZqEZS7kabAitYLVbedu7ULRkJ7uGFiwuScXgh6nJcXwgUEXUUOkNUY7DT
 k5nlXJ742LzF6rWIAcFSVSooFITLLOzOnJD0FpUsIrRvv8JYlq5pLGOzCli9OL7CfmiP2av
 6SSWaTKHJlbNG7lcCiQyA==
X-Spam-Score: -0.9 (/)
X-Debbugs-Envelope-To: 15284
Cc: 15284 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.9 (/)


--nextPart2666339.UzJ6piid3m
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Am Freitag, 6. September 2013, 14:06:49 schrieb Ludovic Court=C3=A8s:
> However, I prefer treating packages just like any other Scheme object=
,
> and to avoid introducing =E2=80=9Cmagic=E2=80=9D with macros like thi=
s.

I prefer not having to repeat stuff, and being able to do stuff like th=
is is one of the big advantages of scheme.

But to see whether it actually helps a lot, it would be necessary to kn=
ow how many packages will be available in multiple versions (so the pac=
kage name and the variable have to differ).

Best wishes,
Arne
--=20
Ein Mann wird auf der Stra=C3=9Fe mit einem Messer bedroht.=20
Zwei Polizisten sind sofort da und halten ein Transparent davor.=20

=09"Illegale Szene. Niemand darf das sehen."

Der Mann wird ausgeraubt, erstochen und verblutet,=20
denn die Polizisten haben beide H=C3=A4nde voll zu tun.=20

Willkommen in Deutschland. Zensur ist sch=C3=B6n.=20
      ( http://draketo.de/stichwort/zensur )


--nextPart2666339.UzJ6piid3m
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iJwEAAEIAAYFAlIzmPQACgkQ3M8NswvBBUhMGwP/S81/O5wiCgF1J7dCsamw41WP
fQnHfiS5kTRKIAjXlkMjg3T8Sgzhkcg3HEmCToXdIyJgD/Lrt7wnYn5JsoFAc26l
hoONj28NS1ZYXtN9u6BKWyXKFKns71vZmXQMlKay35HdQ9W17HVz1Geaxs7WUaRg
zXzDSgSyV9EXQrV+gZA=
=kBek
-----END PGP SIGNATURE-----

--nextPart2666339.UzJ6piid3m--





Information forwarded to bug-guix@HIDDEN:
bug#15284; Package guix. Full text available.

Message received at 15284 <at> debbugs.gnu.org:


Received: (at 15284) by debbugs.gnu.org; 7 Sep 2013 21:30:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 07 17:30:59 2013
Received: from localhost ([127.0.0.1]:47795 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VIQ5q-0007Zy-GM
	for submit <at> debbugs.gnu.org; Sat, 07 Sep 2013 17:30:58 -0400
Received: from moutng.kundenserver.de ([212.227.126.187]:53126)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <andreas@HIDDEN>) id 1VIQ5o-0007Zi-JU
 for 15284 <at> debbugs.gnu.org; Sat, 07 Sep 2013 17:30:57 -0400
Received: from debian (aqu33-1-82-66-2-95.fbx.proxad.net [82.66.2.95])
 by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis)
 id 0MELbk-1VBpSa2Tv6-00G3iG; Sat, 07 Sep 2013 23:30:49 +0200
Date: Sat, 7 Sep 2013 23:30:45 +0200
From: Andreas Enge <andreas@HIDDEN>
To: Ludovic =?iso-8859-15?Q?Court=E8s?= <ludo@HIDDEN>
Subject: Re: bug#15284: wish: make the (name) field optional
Message-ID: <20130907213045.GC27881@debian>
References: <8761ueqq09.wl%arne_bab@HIDDEN>
 <87k3iu2lye.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87k3iu2lye.fsf@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Provags-ID: V02:K0:moGR+VPR8nH5PduQDPPPq+dH9hYbf3tfOHxWkDEPOju
 LXP6M/E9P1fwhiCd0MOHcZ6/qGLJx+ie/wLEYAFYo7HUCgrHX5
 rIOdf8fezX0srQrPRog+iukAJdqJZ1nMnd5dHtrKzkm7h3ClTA
 +2yUzZLondYFo2tXd0BF5WZb/QAvT/jsCKtmcZvGElrCIJXkqP
 xmdSPtYlsNraoLGpUlluGuUr3MPdWtqg1qL1yxnpwFyGvwNBPl
 dPfd8iP31Kg5fvlh0VuKhXhm57zpc73OgjErC1WtD+++lzUXy9
 fQoidG1dlaUzjt+t31+w4w3cjeG1aXeq1on+oFbM/zC6SICCQ= =
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 15284
Cc: Arne Babenhauserheide <arne_bab@HIDDEN>, 15284 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

On Fri, Sep 06, 2013 at 02:06:49PM +0200, Ludovic Courts wrote:
> As discussed on IRC, the main issue is that package objects exist
> whether or not the exist a variable bound to them; and really there can
> be any number of variables whose value is a given package object.  IOW,
> there is no direct connection between the variable name and the package
> name.

This is what happens with the python package rewriting I just implemented:
Inputs are rewritten as packages inside a list, and are not associated
to a variable name.

Having a special syntax just for avoiding to write the package name a second
time is not really needed in my opinion.

Andreas





Information forwarded to bug-guix@HIDDEN:
bug#15284; Package guix. Full text available.

Message received at 15284 <at> debbugs.gnu.org:


Received: (at 15284) by debbugs.gnu.org; 6 Sep 2013 12:06:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 06 08:06:56 2013
Received: from localhost ([127.0.0.1]:43465 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VHuoR-0003WU-Ca
	for submit <at> debbugs.gnu.org; Fri, 06 Sep 2013 08:06:55 -0400
Received: from hera.aquilenet.fr ([141.255.128.1]:52164)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <ludo@HIDDEN>) id 1VHuoO-0003WH-9G
 for 15284 <at> debbugs.gnu.org; Fri, 06 Sep 2013 08:06:53 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id ADD6C14E5;
 Fri,  6 Sep 2013 14:06:49 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id yF4FNX9gO6aX; Fri,  6 Sep 2013 14:06:49 +0200 (CEST)
Received: from pluto (unknown [193.50.110.150])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 748CD11CC;
 Fri,  6 Sep 2013 14:06:49 +0200 (CEST)
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Arne Babenhauserheide <arne_bab@HIDDEN>
Subject: Re: bug#15284: wish: make the (name) field optional
References: <8761ueqq09.wl%arne_bab@HIDDEN>
Date: Fri, 06 Sep 2013 14:06:49 +0200
In-Reply-To: <8761ueqq09.wl%arne_bab@HIDDEN> (Arne Babenhauserheide's message
 of "Fri, 06 Sep 2013 11:05:26 +0200")
Message-ID: <87k3iu2lye.fsf@HIDDEN>
User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 15284
Cc: 15284 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Arne Babenhauserheide <arne_bab@HIDDEN> skribis:

> Currently when defining a package, I have to write the name at least
> twice:
>
> (define-public NAME
>   (name "NAME"))
>
> This gives the flexibility to use different names for the visual
> output and the technical name. But for most packages it likely just
> adds useless duplication.
>
> So I think the (name) field should be optional, and if it is not
> present, the packages technical name should be used automatically.

As discussed on IRC, the main issue is that package objects exist
whether or not the exist a variable bound to them; and really there can
be any number of variables whose value is a given package object.  IOW,
there is no direct connection between the variable name and the package
name.

That said, for cases like the above, we could have:

  (define-syntax-rule (define-package package-name fields ...)
    (define-public package-name
      (package
        (name (symbol->string 'package-name))
        fields ...)))

However, I prefer treating packages just like any other Scheme object,
and to avoid introducing =E2=80=9Cmagic=E2=80=9D with macros like this.

WDYT?

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#15284; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Sep 2013 09:06:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 06 05:06:08 2013
Received: from localhost ([127.0.0.1]:43037 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VHrzT-0006Kv-GZ
	for submit <at> debbugs.gnu.org; Fri, 06 Sep 2013 05:06:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58609)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <arne_bab@HIDDEN>) id 1VHrzQ-0006K1-CV
 for submit <at> debbugs.gnu.org; Fri, 06 Sep 2013 05:06:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <arne_bab@HIDDEN>) id 1VHrzB-0005KQ-Tk
 for submit <at> debbugs.gnu.org; Fri, 06 Sep 2013 05:05:59 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:57499)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <arne_bab@HIDDEN>) id 1VHrzB-0005KK-Mc
 for submit <at> debbugs.gnu.org; Fri, 06 Sep 2013 05:05:49 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60256)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <arne_bab@HIDDEN>) id 1VHrz4-0005bG-81
 for bug-guix@HIDDEN; Fri, 06 Sep 2013 05:05:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <arne_bab@HIDDEN>) id 1VHryw-0005Hs-IL
 for bug-guix@HIDDEN; Fri, 06 Sep 2013 05:05:42 -0400
Received: from mout.web.de ([212.227.15.4]:62628)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <arne_bab@HIDDEN>) id 1VHryw-0005Hn-8V
 for bug-guix@HIDDEN; Fri, 06 Sep 2013 05:05:34 -0400
Received: from kaverne.draketo.de ([212.255.16.46]) by smtp.web.de (mrweb101)
 with ESMTPA (Nemesis) id 0LbaBL-1VgEJa1rOF-00lGBu for
 <bug-guix@HIDDEN>; Fri, 06 Sep 2013 11:05:33 +0200
Date: Fri, 06 Sep 2013 11:05:26 +0200
Message-ID: <8761ueqq09.wl%arne_bab@HIDDEN>
From: Arne Babenhauserheide <arne_bab@HIDDEN>
To: bug-guix@HIDDEN
Subject: wish: make the (name) field optional
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka)
 FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.3
 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
X-Provags-ID: V03:K0:SBM1b3j2bi/5UU9ooPDXgKouHw2X7ykY9bsFk2v/0J7rwz0EW4W
 GYcUUxVJoyE95iJe700uTordmJBTs05lGUDN2ywdnsiDtgS0MAHDLd0I3VNj07yxbG32shH
 pUFERvws5h0a+j1h01l9bb/nCx1Hrs9fSRUtTZdwIMIruDaLiWBwTt4EauaxZDh3Ydtu4Cg
 tDK3nOV79OvXuBXz11IyQ==
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: arne_bab@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.4 (---)

Hi Guix Hackers,

Currently when defining a package, I have to write the name at least
twice:

(define-public NAME
  (name "NAME"))

This gives the flexibility to use different names for the visual
output and the technical name. But for most packages it likely just
adds useless duplication.

So I think the (name) field should be optional, and if it is not
present, the packages technical name should be used automatically.

Best wishes,
Arne




Acknowledgement sent to arne_bab@HIDDEN:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#15284; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.