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 p4GLrvhX028202 for ; Mon, 16 May 2011 23:53:58 +0200 Received: (qmail 26289 invoked by alias); 16 May 2011 21:53:52 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 16 May 2011 21:53:51 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx005) with SMTP; 16 May 2011 23:53:51 +0200 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 p4GLpfXA031244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 May 2011 23:51:41 +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 p4GKkjKY004064; Mon, 16 May 2011 23:51:41 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1306675 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 16 May 2011 23:51:41 +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 p4GLpfXU019621 for ; Mon, 16 May 2011 23:51:41 +0200 Received: from nm12.access.bullet.mail.mud.yahoo.com (nm12.access.bullet.mail.mud.yahoo.com [66.94.237.213]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with SMTP id p4GLpTaT031197 for ; Mon, 16 May 2011 23:51:30 +0200 Received: from [66.94.237.199] by nm12.access.bullet.mail.mud.yahoo.com with NNFMP; 16 May 2011 21:51:29 -0000 Received: from [66.94.237.106] by tm10.access.bullet.mail.mud.yahoo.com with NNFMP; 16 May 2011 21:51:29 -0000 Received: from [127.0.0.1] by omp1011.access.mail.mud.yahoo.com with NNFMP; 16 May 2011 21:51:29 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 41023.73254.bm@omp1011.access.mail.mud.yahoo.com Received: (qmail 61257 invoked by uid 60001); 16 May 2011 21:51:29 -0000 X-YMail-OSG: OSjoom8VM1kAdUVjkeK1AZp33lgawxMjq56SWC_8.73rTac u6q0osI2ktJ5LwftrAgESJTAyNUvCpLzf1FfU5J7s6_OgBohJkiogBokQ_Ap 8pkr41j_idvgggHbdoZArAhFrJ2sdLD.1hqd9fkApKSdUssTBXHeRn8fyaZB sncLexsfJa4CGXtDvzr0gth47TPTIJ9Vqg0ViGxDrKuS7JydrkIrzRmlzrN4 2yDvl_flfksv8xwUM1Nh4x5OcGcImF7XFRIzITaLKsC9KatQjlkLXfsg4klc RtJye51mVqSWePE7ojwrOnR_nUfxI3whxRZVd3TFHVQDeL067bfJxAiUz5Sn SoDcdPHtRediAUQrV4vPppTDHm6npn4f5yrf78BpwRNMvsImohMCFUnreThI aBXa_klqtx6tHpRAlvp11Was- Received: from [206.208.217.6] by web82005.mail.mud.yahoo.com via HTTP; Mon, 16 May 2011 14:51:28 PDT X-Mailer: YahooMailRC/567 YahooMailWebService/0.8.111.303096 References: <4DCA93CC.5020605@morningstar2.co.uk> <19920.15087.714131.100464@morse.mittelbach-online.de> <447088.31292.qm@web24704.mail.ird.yahoo.com> <4DD0BFB3.7070007@morningstar2.co.uk> <27DAD3FD-9C28-4707-9454-FBB65B66A56D@gmail.com> <19921.39458.647973.867958@morse.mittelbach-online.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-363264706-1305582688=:59964" Message-ID: <894329.59964.qm@web82005.mail.mud.yahoo.com> Date: Mon, 16 May 2011 14:51:28 -0700 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Paul Thompson Subject: Re: xparse and space skipping To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <19921.39458.647973.867958@morse.mittelbach-online.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p4yCuwxJv6KY0FCZRnwZ+13Wl0o+1groCIBInhUwcxzA+VBw27otUvYoNpMA 0GvKWAKSrTcPTtCUjEcFqm9C8FOTXBDanOn4aaoPdFhPf+a9xw27sMs9ya7BlayzVGLNcC7NhSlb Pj4pmLuUhOHO9h7IL7fgZoFnbpv3V0FQPvw0dzO56KvETDKpyvyQqStuEk42W/V2r2rEQ==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: 6761 --0-363264706-1305582688=:59964 Content-Type: text/plain; charset=us-ascii I really wish that the positional thing was somewhat deprecated in favor of a named argument approach, which would replace the limit of 9 at some point. Paul Thompson Professor and Senior Scientist Director, Methodology and Data Analysis Center Sanford Research 900 W Delaware Sioux Falls, SD 57104 O: 605-312-6462 M: 618-974-0473 H: 605-332-1587 F: 605-328-0401 909 N. Charleston Circle Sioux Falls, SD 57110 605-332-1587 ________________________________ From: Frank Mittelbach To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE Sent: Mon, May 16, 2011 4:41:54 PM Subject: Re: xparse and space skipping > On 16/05/2011, at 3:39 PM, Joseph Wright wrote: > > > To me, that means > > > > \foo[...]{...} > > > > is a possible, but I'd hope not > > > > \foo{...}[...] > > I think there are enough examples on CTAN where people have needed to > extend the optional argument syntax to indicate that the 2e model above is > too restricted for user purposes. --text follows this line-- A simple syntax with unnamed positional arguments (optional or mandatory or mixed) as 2e provides it has its uses and they go beyond a single optional argument. But clearly this is a syntax that very fast gets difficult to use or rather to remember. It all depends on how strong the arguments are "naturally ordered" and how often such commands are used. > > Having said that, I do agree in some cases (such as \makebox[][]{}) an > overload of optional arguments is also a bad idea, where a keyval interface > makes more sense. I guess there are worse ones but yes, those kind of commands are good examples were such a syntax is fast reaching its limits especially as the commands are seldom used. But if a command is used often enough you can keep a consise syntax and still have it fairly complex. Anyway, I'm not arguing key/val no key/val. I'm quite a fan of the letter (sometimes) > Dropping trailing optional arguments just doesn't feel right to me; in the > interests of disclosure, however, at least two of the packages I've written > (pstool and mlist) use them, so I'm clearly biased :) Their interfaces > could certainly be revised but I don't think (yet) in hindsight that the > way the commands work therein is necessary a bad idea. I wouldn't drop them either (not for xparse anyway) and I think that Lars' suggestions needs a closer look at to perhaps provide the best of both worlds even here. frank --0-363264706-1305582688=:59964 Content-Type: text/html; charset=us-ascii
I really wish that the positional thing was somewhat deprecated in favor of a named argument approach, which would replace the limit of 9 at some point.
 
Paul Thompson

Professor and Senior Scientist
Director, Methodology and Data Analysis Center
Sanford Research
900 W Delaware
Sioux Falls, SD 57104


O: 605-312-6462
M: 618-974-0473
H: 605-332-1587
F: 605-328-0401


909 N. Charleston Circle
Sioux Falls, SD 57110
605-332-1587



From: Frank Mittelbach <frank.mittelbach@LATEX-PROJECT.ORG>
To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE
Sent: Mon, May 16, 2011 4:41:54 PM
Subject: Re: xparse and space skipping

> On 16/05/2011, at 3:39 PM, Joseph Wright wrote:
>
> > To me, that means
> >
> >  \foo[...]{...}
> >
> > is a possible, but I'd hope not
> >
> >  \foo{...}[...]
>
> I think there are enough examples on CTAN where people have needed to
> extend the optional argument syntax to indicate that the 2e model above is
> too restricted for user purposes.
--text follows this line--
A simple syntax with unnamed positional arguments (optional or mandatory or
mixed) as 2e provides it has its uses and they go beyond a single optional
argument. But clearly this is a syntax that very fast gets difficult to use or
rather to remember. It all depends on how strong the arguments are "naturally
ordered" and how often such commands are used.
>
> Having said that, I do agree in some cases (such as \makebox[][]{}) an
> overload of optional arguments is also a bad idea, where a keyval interface
> makes more sense.

I guess there are worse ones but yes, those kind of commands are good examples
were such a syntax is fast reaching its limits especially as the commands are
seldom used. But if a command is used often enough you can keep a consise
syntax and still have it fairly complex.

Anyway, I'm not arguing key/val no key/val. I'm quite a fan of the letter (sometimes)

> Dropping trailing optional arguments just doesn't feel right to me; in the
> interests of disclosure, however, at least two of the packages I've written
> (pstool and mlist) use them, so I'm clearly biased :)  Their interfaces
> could certainly be revised but I don't think (yet) in hindsight that the
> way the commands work therein is necessary a bad idea.

I wouldn't drop them either (not for xparse anyway) and I think that Lars'
suggestions needs a closer look at to perhaps provide the best of both worlds
even here.

frank
--0-363264706-1305582688=:59964--