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 p9D9i7LG027832 for ; Thu, 13 Oct 2011 11:44:08 +0200 Received: (qmail 12079 invoked by alias); 13 Oct 2011 09:44:02 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 13 Oct 2011 09:43:31 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx048) with SMTP; 13 Oct 2011 11:43:31 +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 p9D9etSj003621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Oct 2011 11:40:55 +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 p9D9WtAC001703; Thu, 13 Oct 2011 11:40:55 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1798423 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Thu, 13 Oct 2011 11:40:55 +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 p9D9esk0014653 for ; Thu, 13 Oct 2011 11:40:54 +0200 Received: from mail-dy0-f49.google.com (mail-dy0-f49.google.com [209.85.220.49]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p9D9enus003518 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Thu, 13 Oct 2011 11:40:53 +0200 Received: by dyl37 with SMTP id 37so55281dyl.22 for ; Thu, 13 Oct 2011 02:40:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.92.152 with SMTP id r24mr4988847fam.19.1318498849551; Thu, 13 Oct 2011 02:40:49 -0700 (PDT) Received: by 10.152.4.193 with HTTP; Thu, 13 Oct 2011 02:40:49 -0700 (PDT) References: <4E93664D.7090105@residenset.net> <7225.1318285652@cl.cam.ac.uk> <4E945FF9.1060803@residenset.net> <4E969C01.2010604@morningstar2.co.uk> Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Whitelist: Message-ID: Date: Thu, 13 Oct 2011 05:40:49 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Bruno Le Floch Subject: Re: Strings, and regular expressions To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4E969C01.2010604@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p6sJLDpZh614Kjz2nt6F3tHO92E4AW2Db7yBNM9zAfj6NC5xGqUFCPmPpmYe VUk44EnxRAAG63lyRYMAlgWLNjfxDOuOBath17/4g/YSYT4Evqy+KVMPHshnCHZG1hxcfNeodRYL WpZq2q3tjEYbM51VlJ/UdZwAgQD0C4BzUeUdIHhN6Yj0T1uSzPK8xaQct4=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: 6936 >> If you really thing the n/N distinction is confusing, what about a >> "currying" mechanism whereby regexes automatically create their prebuilt >> form and save it in an internal macro which is used for subsequent calls >> to the same regex? > > AS you say, I don't think removing stuff is the right way forward at > this point. The reason for raising this was to be clear that the current > approach is the best one. Having a set of n/N functions does seem to > require quite a lot of variants in the documentation, so I wanted to be > clear that this is best. > > As Will says, an alternative is simply to save all regexes > automatically, and check for the existence of the regex before building > it. That of course costs in terms of macros, so the question is how many > regexes are likely to be used. (We are talking about a typesetting > system, so really this should not normally be 100s.) You guys are right. I'll add this automatic storage this weekend, and remove the N variants (since they will be done automatically). -- Bruno