Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Mon, 24 Aug 2009 19:24:02 +0200 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n7OHO2Re025992 for ; Mon, 24 Aug 2009 19:24:02 +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 n7OHK3fm019432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 Aug 2009 19:20:03 +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 n7OE6oLG019680; Mon, 24 Aug 2009 19:19:59 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 291574 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 24 Aug 2009 19:19:59 +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 n7OHJx6s030386 for ; Mon, 24 Aug 2009 19:19:59 +0200 Received: from mail-ew0-f217.google.com (mail-ew0-f217.google.com [209.85.219.217]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id n7OHJtRI024207 for ; Mon, 24 Aug 2009 19:19:58 +0200 Received: by ewy17 with SMTP id 17so2560554ewy.2 for ; Mon, 24 Aug 2009 10:19:55 -0700 (PDT) Received: by 10.210.142.6 with SMTP id p6mr5074791ebd.85.1251134395262; Mon, 24 Aug 2009 10:19:55 -0700 (PDT) Received: from ?10.0.1.103? (122-49-139-70.ip.adam.com.au [122.49.139.70]) by mx.google.com with ESMTPS id 24sm470592eyx.53.2009.08.24.10.19.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 24 Aug 2009 10:19:54 -0700 (PDT) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) References: <4A7921CF.5020803@morningstar2.co.uk> <4A8EC449.4040509@morningstar2.co.uk> <19088.5371.517713.176151@morse.mittelbach-online.de> <19090.50621.179277.605279@morse.mittelbach-online.de> X-Mailer: Apple Mail (2.935.3) X-Spam-Whitelist: Message-ID: <09905C33-A148-40E5-A28F-0755ECD618AF@gmail.com> Date: Tue, 25 Aug 2009 02:49:43 +0930 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: xparse To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <19090.50621.179277.605279@morse.mittelbach-online.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -6.599 () BAYES_00,RCVD_IN_DNSWL_MED X-Scanned-By: MIMEDefang 2.65 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 24 Aug 2009 17:24:02.0526 (UTC) FILETIME=[AC9567E0:01CA24DF] Status: R X-Status: X-Keywords: X-UID: 6001 On 25/08/2009, at 2:24 AM, Frank Mittelbach wrote: > Right now we have > > \DeclareDocumentCommand - doing both > > \DeclareDocumentCommandInterface ... making a stab at separation but > not > thought through really (the names are pretty bad really). > > Personally I would like to table it for now and if we return to it > with some > good ideas it isn't too hard to even change anything that by then used > \DeclareDocumentCommand. > > Alternative is to go on through a few more cycles to get a grip on > this split > (layer -1 and 0) but I gurantee that this is going to be difficult > at the > current stage. Indeed. > The only problem that I see is the following: > > \DeclareDocumentCommand is quite a fine name and if we attach it to > something > that bundles layer -1 and 0 then it will be a little difficult to > use it > later, say, only for layer 0 declaration > > So having said this, perhaps tabling it isn't such a grand idea > after all and > we should discuss naming and concepts a little further first. Well, when I think about xparse and the idea of multiple layers -1, I can't help but feel that xparse takes a fairly limiting approach. Consider Bill Hammond's example: \section*[short]{long} to
short long
There is no way we could do that at present with xparse. We'd need to assign names to all optional arguments and some sort of mapping between boolean flags and tag attributes. \DeclareDocumentCommandInterface needs to take a step back if it's to be at all useful for more markup forms than simply LaTeX2e-like. Brain switching off so I shan't attempt any more thinking... Will