Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s4U0tDfT030431 for ; Fri, 30 May 2014 02:55:14 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx112) with ESMTPS (Nemesis) id 0Mc9oh-1X5mH638Pn-00JcYu for ; Fri, 30 May 2014 02:55:07 +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 s4U0q7wM032614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 May 2014 02:52:07 +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 s4TM18QH009843; Fri, 30 May 2014 02:52:07 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11051775 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 30 May 2014 02:52:07 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4U0q7dp024141 for ; Fri, 30 May 2014 02:52:07 +0200 Received: from mail-qg0-f48.google.com (mail-qg0-f48.google.com [209.85.192.48]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4U0pwqn032566 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Fri, 30 May 2014 02:52:02 +0200 Received: by mail-qg0-f48.google.com with SMTP id i50so3387282qgf.35 for ; Thu, 29 May 2014 17:51:58 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.95.80 with SMTP id h74mr15032502qge.2.1401411118500; Thu, 29 May 2014 17:51:58 -0700 (PDT) Received: by 10.96.19.42 with HTTP; Thu, 29 May 2014 17:51:58 -0700 (PDT) References: <00e701cf7542$114f8870$33ee9950$@post.harvard.edu> <537DA7E9.7080403@morningstar2.co.uk> <010801cf759c$84533fb0$8cf9bf10$@post.harvard.edu> <005601cf7ba0$a548cff0$efda6fd0$@gmail.com> Content-Type: text/plain; charset=UTF-8 Message-ID: Date: Thu, 29 May 2014 20:51:58 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Bruno Le Floch Subject: Re: Trouble with the .bool_set:N property To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <005601cf7ba0$a548cff0$efda6fd0$@gmail.com> 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:1SsiBM5IX70=:rJ2y6lxYvSGXM5IKdKQsH9fuCr edczfckzwENbyYrv1H5lsHn1v4M+ZQepVNv9t65OVkrjxnDX32/HhQzS+f4yru4doFpr9gJPV MrTQ13wXBQfChAjxpaQaEJiZIZqZhbmNnV1NJYqFzXVBk0xo9aXEiuCFsHqc5BFvbCx8ZsoHs YPK2FRVejO0qqMcTPAE2GRM4UWaeGwHoDIJH7zjhVqeSC8pqOr7FmbAA0IHaCy86qdRylK8re yfqM2IjgVnrbMeTcwcqsEKRLaKjiZeYuizEhBzEJEUO5ts2/jELLaCdUV2F7m5C//gKM8nLYe 7bHC+0RkzEHS/5YffYhbWJQfV/3GWY5uatNcYzALjip2oT2rezZgPX229Ld0Iq8QU4LKbLnlq trM9HQlzbRBywSclFlh67YATLfwKZf2GooeMWXQxdyWywEudd4+k5i7g06acCmFNLzo/Pocac M5Z/WoxEE2IW6kPGim6Wv+5+NL5CVD7A3sAXh97VxoXEqae8NREzSGjJk6ORJTLMWMqYyC3vz 24crUjYjmuk2KtrF4mIIbB4jRIlKpM+WxWh89CWH8MYyhB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AN9Tt0= Status: R X-Status: X-Keywords: X-UID: 7463 On 5/29/14, Jura Pintar wrote: >> Wait, how is that not covered by .bool_set:N and .bool_set_inverse:N? >> Doing " turnfooingon .bool_set:N = \l_mymodule_fooing_bool " and " >> turnfooingoff .bool_set_inverse:N = \l_mymodule_fooing_bool " allows the >> user to use the keys turnfooingon and turnfooingoff as you describe. >> Well, it >> also allows the user to do weirder things like "turnfooingoff=false" to >> turn >> fooing on. >> >> Bruno > > You're totally right: it is. I think I let my mind wander a bit when I was > writing the example... What's actually at issue is whether constructions > along the lines of > > \mymoduledoclevelsetup{ fooing = activate } > \mymoduledoclevelsetup{ fooing = deactivate } > > should be tacitly encouraged by making > > \keys_define:nn { mymodule } > { > fooing .choice: , > fooing/ activate .bool_set_true:N = \l_mymodule_fooing_bool , > fooing / deactivate .bool_set_false:N = \l_mymodule_fooing_bool > } > > available out of the box, or whether it's better to leave it to package > authors to use .code:n or some such alternative if they want to get > this behaviour. > > Best, > > Jura Ah, ok, I understand. And I don't have a preference either way. Regards, Bruno