Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id p8LJT7TV032213 for ; Wed, 21 Sep 2011 21:29:08 +0200 Received: (qmail 29509 invoked by alias); 21 Sep 2011 19:29:01 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 21 Sep 2011 19:29:01 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx029) with SMTP; 21 Sep 2011 21:29:01 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p8LJPrim015375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Sep 2011 21:25:54 +0200 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p8LGSB1F023745; Wed, 21 Sep 2011 21:25:53 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1626176 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 21 Sep 2011 21:25:53 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p8LJPrHo025230 for ; Wed, 21 Sep 2011 21:25:53 +0200 Received: from lon1-post-2.mail.demon.net (lon1-post-2.mail.demon.net [195.173.77.149]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p8LJPSv4011188 for ; Wed, 21 Sep 2011 21:25:32 +0200 Received: from cremornelane.demon.co.uk ([80.177.25.195] helo=palladium.local) by lon1-post-2.mail.demon.net with esmtp (Exim 4.69) id 1R6SQC-0004qq-bD; Wed, 21 Sep 2011 19:25:28 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 References: <4E6D0C75.6090500@morningstar2.co.uk> <13xqgkr6dq2cr.dlg@nililand.de> <4E778D59.4090105@latex-project.org> <49096BC7-82D6-4DC4-841F-6E7AB70A354A@gmail.com> <4E7A33B6.4000701@latex-project.org> X-Enigmail-Version: 1.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4E7A3A27.7080706@morningstar2.co.uk> Date: Wed, 21 Sep 2011 20:25:27 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Scratch variables To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4E7A33B6.4000701@latex-project.org> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Sender is in whitelist: joseph.wright@MORNINGSTAR2.CO.UK); Detail=5D7Q89H36p4L00VTXC6D4q0N+AH0PUCnBi0P5cROEGjO+pG7NAH/K+tf9SrVFtpLrKONl 2T9EL4W4U4jgzLbnCcGpk1z/zwmKT/K1fv3lD0=V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6895 On 21/09/2011 19:57, Frank Mittelbach wrote: > Am 20.09.2011 05:57, schrieb Will Robertson: >> On 20/09/2011, at 4:13 AM, Frank Mittelbach wrote: >> >>> I think bottom line we don't really need them any more these days. >>> The only reason why I would keep them is that for fast access to >>> variables when experimenting/developing (without needing to declare >>> something first), but for proper packages it is far better come up >>> with your own private scratch names. >> >> I agree with this, but I don't think we should remove anything that's >> been around for a while now. I suggest removing the just-added clist >> scratch variables and keeping what remains as they are -- but not >> adding any others. > > my takeaway is actually different. I would suggest to keep the tmp > variables and provide for each datatype exactly two/four default ones > (also for the new types) > > \l_tmpa_int > \l_tmpb_int > \g_tmpa_int > \g_tmpb_int > > In the general documentation we might explain the issue and risks and > that we suggest to carefully consider in packages for general use to > define "private" scratch variables instead, and that those here here for > convenience as some people prefer this style of programming. I'm with Frank on this: there is not really a problem with providing a small number of scratch variables. So the only question is how many. At the moment, we've got 'mainly tow, a and b'. Seems reasonable to be going on with. -- Joseph Wright