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 pB3BSXvp003612 for ; Sat, 3 Dec 2011 12:28:34 +0100 Received: (qmail 12273 invoked by alias); 3 Dec 2011 11:28:28 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 03 Dec 2011 11:28:28 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx049) with SMTP; 03 Dec 2011 12:28:28 +0100 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 pB3BQ6TO010947 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 3 Dec 2011 12:26:07 +0100 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 pB2N1Ftm009001; Sat, 3 Dec 2011 12:26:06 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1925866 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 3 Dec 2011 12:26:06 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id pB3BQ6jc029339 for ; Sat, 3 Dec 2011 12:26:06 +0100 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id pB3BPkAP010862 for ; Sat, 3 Dec 2011 12:25:50 +0100 Received: from mittelbach-online.de (p3EE3E90E.dip.t-dialin.net [62.227.233.14]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0LgBEG-1R3Hv40y7I-00nufD; Sat, 03 Dec 2011 12:25:46 +0100 Received: by mittelbach-online.de (Postfix, from userid 783) id 1213C2202A9; Sat, 3 Dec 2011 12:25:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on Marlowe X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED,AWL autolearn=unavailable version=3.2.5 Received: from [127.0.0.1] (unknown [192.168.123.100]) (Authenticated sender: frank) by mittelbach-online.de (Postfix) with ESMTPSA id C4DAB2202A4 for ; Sat, 3 Dec 2011 12:25:40 +0100 (CET) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 References: <4ED9ED20.40004@morningstar2.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 111203-0, 03.12.2011), Outbound message X-Antivirus-Status: Clean X-Provags-ID: V02:K0:zQ4/Mq+pK0NtBV8V4JxBSjRruip2i+Nfo4FGlOitTdv uLFe/biUi/sIbYcNxG+4it5RKe5wVNivnWyQvEnb37fD6dZIQa bC5RTHNp5heQp0T5qf3lZmxfZ4tCkwSxIq/7AQFg1I9F8rqRcq 8aqlY9ub1dT0oxO1I8ktxEolnGfHWyHZnzey195ryuA9KQ5jCr rJ8oszXZmljE7U4uDQHHJ/icq6kdEFm6z+cSeivB1IYXs2BYn1 AXeRzm1xFMiYJ0hSSx07m25EOtSRml/rKzDq2kTeZe4TvU7kqo ndaiLYoww0GEOaoE4nG1F7/YF07WlmyptdgfB6DNwC6WHd8cmQ kpubFIn0jAYK9Lr5oVUjJmoK05PA1qOE5DB1sLeEd Message-ID: <4EDA0732.5060003@latex-project.org> Date: Sat, 3 Dec 2011 12:25:38 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Frank Mittelbach Subject: Re: Documentation of local/global variants To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4ED9ED20.40004@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p7zYQev1Bv5lQ495VuvhE7z3cTDv5CNKp2UdEaJ1ur4srXU2Sm4CZKk/PI+3 b1LzWtG6A2zgOABX6VVibKV03//DMupsVybTWKA+C1qvysT8V5QReRftEUbHY9VNFCNc1AO3A87Q kNns2W+qOXNmMyPoyHWTXt6AyizXNMGYzlyZa7DaO9dFlhXkRPGMbaMhQY=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: 6969 Am 03.12.2011 10:34, schrieb Joseph Wright: > I wonder if it would make more sense to take the same approach for > functions with local/global versions. Something like: > > 'Where functions for variable manipulation can apply either locally or > globally, the latter case is indicated by the inclusion of a "g" in the > last part of the function name. Thus \tl_set:Nn is a local function but > \tl_gset:Nn acts globally. Functions of this type are always documented > together, and the scope of action may therefore be inferred from the > presence or absence of a "g".' > > The scope would then be excluded from the function documentation: > > % \begin{function} > % { > % \tl_set:Nn, \tl_set:cn, > % \tl_gset:Nn, \tl_gset:cn > % } > % \begin{syntax} > % \cs{tl_set:Nn} \meta{tl~var} \Arg{tokens} > % \end{syntax} > % Sets \meta{tl~var} to contain \meta{tokens}, > % removing any previous content from the variable. > % \end{function} > > Does this make sense as a sensible balance between formality and > documentation length? I would be quite happy with this approach of documenting local and global variants in a single place together as the convention is in nearly all cases very clear and the use of "g" or its absence understandable without further explanation (other than at the very beginning outlining the approach). And in the few cases where the "g" may need additional explanation because it could refer to one or the other argument that could still either be done on the spot or if necessary in that case split into separate documentation blocks. So yes I would agree to that approach. I do see however a dependency on the other suggestion made (in a separate email) on dropping the documentation of arg manipulating variants so before anything got changed I think both need to be looked at together. frank