Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r67JAhJX003729 for ; Sun, 7 Jul 2013 21:10:44 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx110) with ESMTP (Nemesis) id 0LqUk1-1UHsdw2zdx-00e5w2 for ; Sun, 07 Jul 2013 21:10:37 +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 r67J7kof026583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 7 Jul 2013 21:07:47 +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 r677AwWS002298; Sun, 7 Jul 2013 21:07:46 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10258830 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 7 Jul 2013 21:07:46 +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 r67J7kTX001252 for ; Sun, 7 Jul 2013 21:07:46 +0200 Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r67J7aCE026525 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Sun, 7 Jul 2013 21:07:39 +0200 Received: by mail-pd0-f174.google.com with SMTP id 10so3379898pdc.19 for ; Sun, 07 Jul 2013 12:07:35 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.68.164.97 with SMTP id yp1mr17778210pbb.77.1373224055116; Sun, 07 Jul 2013 12:07:35 -0700 (PDT) Received: by 10.66.150.226 with HTTP; Sun, 7 Jul 2013 12:07:35 -0700 (PDT) References: <51D9914A.5090606@morningstar2.co.uk> <51D9972E.9000109@mada-nada.de> <51D99BDF.3020208@latex-project.org> <51D9A102.3070008@mada-nada.de> Content-Type: text/plain; charset=ISO-8859-1 Message-ID: Date: Sun, 7 Jul 2013 15:07:35 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Bruno Le Floch Subject: Re: Function renaming: \_case:nnn to \_case:nnF To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <51D9A102.3070008@mada-nada.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:2xmszdKKs/8=:10CQQJwrjFOb76JKk0CVBz gGt5wl190vojR1gmDZ50OJbIFfJfkd6VnYO5DXz3dvkDtBqShO7HHHi/AYla/7s7lm/2v9f ZMtVc88cMIiqk8RNG9sK1avlkUIRekXX0DV7GL9w1D1nPVu/qyjNgSUfIz/hyGatRCarsQa C6OYmkfk8lP40J48y2C2FDHJW3qo3UeR03CWLpYuCknvJ6BB3jL8xFxuDJcLDRpCMkag/vD KsJoWOgAd43ELz7iJUZ/P4yokXy75vi/tOt92PoBS8CsrjBpBBRtNbuIaQVj2tfIK8ZQim3 uj7VPKDxrTnR73Xkqu++ryslRrN/w3gAzxkurhnwcFcaZDk/IMK6bBsAI86vaEz9/gtJf9e lA4o3dkYuQulHbuKI8BYuAXiR0QKa6x9aekOJdDf9Wm5vfwgegZcD6DJNOEzASUN/3zwSXL C/pO3m/qKp78KPGehrvme6QJiGQa6sz7ghNf9pW9+PYtVuYpdHOdmSZIL3hh0l9M+bKGaZF pNPms4FnqX+BOXMNgYQPbptSd2fW1exRsTK2JHSuCfPCFBgJhT32H4dXz8fMtaKNMg0/yGO ZlD2AumkoLuKBa5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pEgJgk6P7YotQTk5DmYUtwvUdJf+bs= Status: R X-Status: X-Keywords: X-UID: 7218 Hi, >> In fact one could think of also having >> >> \_case:nnTF >> >> where the T branch is selected if you have a match (in addition to >> executing any match code from the "n" argument). > This sounds more logical for me and I really like this idea. I think the > true part is mostly a message instead of a function. However for me as a > beginner it's more consistent in a expl3 manner. ;-) > > So after this small discuss I vote for the following: > > \_case:nn_p > \_case:nnF > \_case:nnT > \_case:nnTF I don't think we can really have \_case_p:nn (note that you misplaced the "_p"), because the \_case:nn part leaves tokens in the input stream, that would interact badly with the boolean expression code. E.g., \bool_if:nTF { \int_case_p:nn {1*0} { {0}{} {1}{} } } would only work because all "code" brace groups are empty. I believe that such a situation would be a job for a different function, \_any:nn(TF), to be discussed separately: \int_if_any:nnTF {1*0} { {0} {1} } ... \bool_if:nTF { \int_if_any_p:nn {1*0} { {0} {1} } } ... Regards, Bruno