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 p06HqTZ8013333 for ; Thu, 6 Jan 2011 18:52:30 +0100 Received: (qmail 32268 invoked by alias); 6 Jan 2011 17:52:23 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 06 Jan 2011 17:52:18 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx054) with SMTP; 06 Jan 2011 18:52:18 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p06HoQNU013035 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 Jan 2011 18:50:26 +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 p06FGB3g001194; Thu, 6 Jan 2011 18:50:24 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 806529 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 6 Jan 2011 18:50:24 +0100 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 p06HoOD5020124 for ; Thu, 6 Jan 2011 18:50:24 +0100 Received: from ueamailgate02.uea.ac.uk (ueamailgate02.uea.ac.uk [139.222.131.185]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p06HoAxk012688 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 6 Jan 2011 18:50:14 +0100 Received: from ueams02.uea.ac.uk (ueams02.uea.ac.uk [139.222.131.131]) by ueamailgate02.uea.ac.uk (8.13.8/8.13.8) with ESMTP id p06Ho9Du015133 for ; Thu, 6 Jan 2011 17:50:10 GMT Received: from [139.222.113.126] by ueams02.uea.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1PatyS-0005k9-T1; Thu, 06 Jan 2011 17:50:08 +0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 References: <1713005794.1189899.1293724895711.JavaMail.fmail@mwmweb012> <19749.63653.743551.563511@morse.mittelbach-online.de> <743624.60246.qm@web82001.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Bayes-Prob: 0.0059 (Score 0, tokens from: @@RPTN, outgoing) X-CanIt-Geo: ip=139.222.131.131; country=GB; region=I9; city=Norwich; latitude=52.6333; longitude=1.3000; http://maps.google.com/maps?q=52.6333,1.3000&z=6 X-CanItPRO-Stream: UEA:outgoing (inherits from UEA:default,base:default) X-Canit-Stats-ID: 66603749 - 8a0589079647 - 20110106 X-Scanned-By: CanIt (www . roaringpenguin . com) on 139.222.131.185 Message-ID: <4D2600D3.7060400@morningstar2.co.uk> Date: Thu, 6 Jan 2011 17:50:11 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: variable opt arg delimiters [was: Defining a ...] To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <743624.60246.qm@web82001.mail.mud.yahoo.com> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p5mOUCHqrP9iL/6eeEA7/vGXc8Az2zQ5lkNsVrprUw5ljr293uKsrVdFBp1i k5eF2TKdovp4qtfEvYkwJlTyCJPnhg0xAPWnM7rhY/+LZUrte1UAr5224vU33NgWA8bmceIWcEOY UsgKg==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: 6541 On 06/01/2011 17:37, Paul Thompson wrote: > The optional argument thing could be better handled by using named arguments. > So, for \parbox, which has optional and mandatory arguments, we currently have > > > \parbox[pos][height][inner-pos]{width}{text} > > This is mindlessly confusing in many cases. Why not have > > \parbox{pos=t,height=something,innerpos=t,width=something}{text} > > > The use of named arguments is vastly superior to positional arguments, > especially when optional arguments can be specified. Not directly relevant to the discussion about how one defines optional arguments, but very true in any case. I hope you'll allow one optional argument as 'reasonable', as this often makes sense: \foo[]{} At this stage, user-level syntax for LaTeX3 is undecided but I suspect that there is likely to be a greater use of key--value stuff where appropriate. > Don't even get me started on \newcommand. \NewDocumentCommand has only mandatory arguments :-) -- Joseph Wright