[latex3-commits] [latex3/latex3] main: A simplification (7cc6fb7f3)

github at latex-project.org github at latex-project.org
Tue Oct 17 23:48:55 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/7cc6fb7f37307a01cdf9c07cc859405b03532644

>---------------------------------------------------------------

commit 7cc6fb7f37307a01cdf9c07cc859405b03532644
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Oct 17 22:48:55 2023 +0100

    A simplification
    
    Suggested by @skillmon.


>---------------------------------------------------------------

7cc6fb7f37307a01cdf9c07cc859405b03532644
 l3kernel/CHANGELOG.md                 |  1 -
 l3kernel/l3basics.dtx                 | 34 ++--------------------------------
 l3trial/l3fp-extras/l3fp-symbolic.dtx | 24 ++++++++++++++----------
 3 files changed, 16 insertions(+), 43 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 9f0de45b2..1efd1c558 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -10,7 +10,6 @@ this project uses date-based 'snapshot' version identifiers.
 ### Added
 - `\text_titlecase_all:n(n)`
 - `\token_to_catcode:N`
-- `\use:ee`, `\use:eee`, etc. up to `\use:eeeeeeeee`
 
 ### Changed
 - Clarify action of `\text_titlecase_first:n(n)`
diff --git a/l3kernel/l3basics.dtx b/l3kernel/l3basics.dtx
index 12749a3a1..a43a47f94 100644
--- a/l3kernel/l3basics.dtx
+++ b/l3kernel/l3basics.dtx
@@ -1045,18 +1045,7 @@
 %   \end{texnote}
 % \end{function}
 %
-% \begin{function}[EXP, added = 2018-06-18, updated = 2023-07-05]
-%   {
-%     \use:e         ,
-%     \use:ee        ,
-%     \use:eee       ,
-%     \use:eeee      ,
-%     \use:eeeee     ,
-%     \use:eeeeee    ,
-%     \use:eeeeeee   ,
-%     \use:eeeeeeee  ,
-%     \use:eeeeeeeee
-%   }
+% \begin{function}[EXP, added = 2018-06-18, updated = 2023-07-05]{\use:e}
 %   \begin{syntax}
 %     \cs{use:e} \Arg{expandable tokens}
 %   \end{syntax}
@@ -1644,28 +1633,9 @@
 %<@@=use>
 %    \end{macrocode}
 %
-% \begin{macro}[EXP]
-%   {
-%     \use:e,
-%     \use:ee,
-%     \use:eee,
-%     \use:eeee,
-%     \use:eeeee,
-%     \use:eeeeee,
-%     \use:eeeeeee,
-%     \use:eeeeeeee,
-%     \use:eeeeeeeee
-%   }
+% \begin{macro}[EXP]{\use:e}
 %    \begin{macrocode}
 \cs_set:Npn \use:e #1 { \tex_expanded:D {#1} }
-\cs_set:Npn \use:ee #1#2 { \tex_expanded:D {#1#2} }
-\cs_set:Npn \use:eee #1#2#3 { \tex_expanded:D {#1#2#3} }
-\cs_set:Npn \use:eeee #1#2#3#4 { \tex_expanded:D {#1#2#3#4} }
-\cs_set:Npn \use:eeeee #1#2#3#4#5 { \tex_expanded:D {#1#2#3#4#5} }
-\cs_set:Npn \use:eeeeee #1#2#3#4#5#6 { \tex_expanded:D {#1#2#3#4#5#6} }
-\cs_set:Npn \use:eeeeeee #1#2#3#4#5#6#7 { \tex_expanded:D {#1#2#3#4#5#6#7} }
-\cs_set:Npn \use:eeeeeeee #1#2#3#4#5#6#7#8 { \tex_expanded:D {#1#2#3#4#5#6#7} }
-\cs_set:Npn \use:eeeeeeeee #1#2#3#4#5#6#7#8#9 { \tex_expanded:D {#1#2#3#4#5#6#7#8#9} }
 %    \end{macrocode}
 % \end{macro}
 %
diff --git a/l3trial/l3fp-extras/l3fp-symbolic.dtx b/l3trial/l3fp-extras/l3fp-symbolic.dtx
index 19617b1d9..e277fbc39 100644
--- a/l3trial/l3fp-extras/l3fp-symbolic.dtx
+++ b/l3trial/l3fp-extras/l3fp-symbolic.dtx
@@ -438,24 +438,28 @@
   }
 \cs_new:Npn \@@_symbolic_unary_to_tl:NNw #1#2 , #3 @
   {
-    \use:ee
-      { \@@_symbolic_cs_arg_to_fn:NN #1#2 }
-      { \exp_last_unbraced:Nf ( { \@@_to_tl_dispatch:w #3 } ) }
+    \use:e
+      {
+        \@@_symbolic_cs_arg_to_fn:NN #1#2
+        \exp_last_unbraced:Nf ( { \@@_to_tl_dispatch:w #3 }
+      }
   }
 \cs_new:Npn \@@_symbolic_binary_to_tl:Nww #1, #2; #3; @
   {
-    \use:ee
-      { \exp_last_unbraced:Nf ( { \@@_to_tl_dispatch:w #2; } ) }
+    \use:e
       {
-        \use:ee
-          { \@@_types_cs_to_op:N #1 }
-          { \exp_last_unbraced:Nf ( { \@@_to_tl_dispatch:w #3; } ) }
+        \exp_last_unbraced:Nf ( { \@@_to_tl_dispatch:w #2; } )
+        \@@_types_cs_to_op:N #1
+        \exp_last_unbraced:Nf ( { \@@_to_tl_dispatch:w #3; } )
       }
   }
 \cs_new:Npn \@@_symbolic_function_to_tl:Nw #1, #2@
   {
-    \use:ee { \@@_types_cs_to_op:N #1 }
-      { \exp_last_unbraced:Nf ( { \@@_array_to_clist:n {#2} } ) }
+    \use:e
+      {
+        \@@_types_cs_to_op:N #1
+        \exp_last_unbraced:Nf ( { \@@_array_to_clist:n {#2} } )
+      }  
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.