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 p2DAwvGD005996 for ; Sun, 13 Mar 2011 11:58:58 +0100 Received: (qmail 29512 invoked by alias); 13 Mar 2011 10:58:52 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 13 Mar 2011 10:58:52 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx083) with SMTP; 13 Mar 2011 11:58:52 +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 p2DAurju011190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 13 Mar 2011 11:56:54 +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 p2DAHdJS014519; Sun, 13 Mar 2011 11:56:41 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1208206 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 13 Mar 2011 11:56:41 +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 p2DAufka014745 for ; Sun, 13 Mar 2011 11:56:41 +0100 Received: from mail-gx0-f177.google.com (mail-gx0-f177.google.com [209.85.161.177]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p2DAuZ5X011141 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Sun, 13 Mar 2011 11:56:40 +0100 Received: by gxk2 with SMTP id 2so1239035gxk.22 for ; Sun, 13 Mar 2011 03:56:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.135.34 with SMTP id m34mr4756751ybn.36.1300013794670; Sun, 13 Mar 2011 03:56:34 -0700 (PDT) Received: by 10.147.170.13 with HTTP; Sun, 13 Mar 2011 03:56:34 -0700 (PDT) References: <905C5ED0-6639-4DEB-95AC-A2FCB2C4491D@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Whitelist: Message-ID: Date: Sun, 13 Mar 2011 06:56:34 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Bruno Le Floch Subject: Re: expl3's seq_pop_right etc. To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p4WX0t+AtsdW2ORvUlAfcdSIdQlIL3FTSFQDxQiodii41fjuqHQd8jenp0+N dNY0CcAB8WAv7r3OtvsaDOOiC4T8TWFW3c0h9kbMpE0/ou/MWvK8X//VR9J5RqCotAZER8h4O06e mC19Q==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: 6668 >> Do we care about keeping braces surrounding an element in a sequence >> (I'd say yes, although it requires more care)? > > Absolutely, yes. More on that. Many of the functions in the seq module are defined somewhat like \cs_new:Npn \seq_foo:w \seq_elt:w #1 \seq_elt_end: {... #1 ...} This removes braces around #1. Since the documentation explicitly states that seq can contain any token except `\seq_elt:w` and `\seq_elt_end:`, I started reimplementing many of the functions to avoid removing braces. However, I'm now seeing that "We use explicit delimiters instead of braces around text to allow efficient searching for an item in the sequence." But that won't work if the item contains `{`, `}`, or `#`. **So my question is: do we want to support braces in seq items or not?** One option would be to say yes, and provide two search functions: one quick one if the item does not contain braces nor `#`, and a slower one which recurses through the arguments and compares with `\tl_if_eq:nnTF`. -- Regards, Bruno