Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s8F4wZfT015065 for ; Mon, 15 Sep 2014 06:58:36 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx102) with ESMTPS (Nemesis) id 0LeS3d-1Y8Sfj16mD-00q7XO for ; Mon, 15 Sep 2014 06:58:30 +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 s8F4u2Zp009525 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Sep 2014 06:56:02 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s8F400dT031712; Mon, 15 Sep 2014 06:56:02 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11284376 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 15 Sep 2014 06:56:02 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s8F4u1mW002369 for ; Mon, 15 Sep 2014 06:56:01 +0200 Received: from smtp3.clear.net.nz (smtp3.clear.net.nz [203.97.33.64]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id s8F4tp1i009451 for ; Mon, 15 Sep 2014 06:55:55 +0200 Received: from mxin3-orange.clear.net.nz (lb2-srcnat.clear.net.nz [203.97.32.237]) by smtp3.clear.net.nz (CLEAR Net Mail) with ESMTP id <0NBX00HC7F0ZX710@smtp3.clear.net.nz> for LATEX-L@listserv.uni-heidelberg.de; Mon, 15 Sep 2014 16:55:50 +1200 (NZST) Received: from 121-74-47-253.telstraclear.net (HELO [127.0.0.1]) ([121.74.47.253]) by smtpin3.clear.net.nz with ESMTP; Mon, 15 Sep 2014 16:55:49 +1200 MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 140914-1, 15/09/2014), Outbound message X-Antivirus-Status: Clean User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Message-ID: <54167155.9070304@clear.net.nz> Date: Mon, 15 Sep 2014 16:55:49 +1200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: aparsloe Subject: Generalising \cs_generate_variant To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:pjDxKDm+ZuA=:BrjEJXlCUhYE2+D5TrnEfEFlCf 8U3v1tlmiUVStkP0EDtTvRW2SFqvmNRxFYf+TmanP+GXhREjZKbOA82q21sx23ZXsVaeH9+IF cGPLYvn8zh5YN9/wnka8P3e6E0gLbfGmmqGRkAn7rTrFzE+tPPqeB9zAiIRjaKpeMTXHWj1oC 0euoHVK15QOpmypgYHOo9XeRtW5GdW9DNUsYtl4wQVBpxFcLprhkz604Q4oBfArpF4AHC4xur SVj4LjdVRodWsyudu6tt+aQDOZ/tOHNLzSI+0zyJsyjS5eHuAxdvQMUbLY3X+X4mxMiTePMQL MUP403mDmP8P5vhZuq8WXHm8OEAAS0tZjJ17jjwAFyl3FZmLP+NdhXnKklbDwnv+PLaQ4KGOt K3AiYVy7wB16IuGWKFWb23eRRUv/3Dh2ZKt7rcyytw0bPwi+lx58awRMymc9q4bFw84gtets2 umAgk32cj6cW0PpGowcNSaqE1C5o9mTBndtKgXmaN6bxZL8Wx8T7YRcYbK6RWb4g12z2v7xch s6BacLMqY6j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I-Out-Filterresults: notjunk:1; Status: R X-Status: X-Keywords: X-UID: 7593 I have found a number of instances where I have wanted to generate a variant with varying degrees of branching, e.g. \cs_generate_variant:Nn \tl_case:Nn { No } \cs_generate_variant:Nn \tl_case:NnT { No } \cs_generate_variant:Nn \tl_case:NnF { No } I find myself envious of the functionality available with \prg_new_conditional:Npnn and its ilk where multiple degrees of branching can be coded in a single statement using a subset of { p, F, T, TF }. It would be nice to be able to write something similar, e.g. \cs_generate_variant:Nnn \tl_case:Nn { No } { , F, T } where the empty slot before the first comma denotes the nonbranching variant. I don't imagine I'm the first to have thought this, so presumably there is good (or at least some) reason for not providing the functionality. It would be good to know. Andrew