You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have `Expr.ofSeq` and `ExprSeq.unapply` to handle such cases.
Instead we provide a single `Exprs` that contains an `apply` and `unapply`.
Furthermore having both `Expr.ofSeq` and `Expr.ofList` has lead to confusions on which one to use for varargs.
This will help guide users to the correct logic to use for varargs.
Copy file name to clipboardExpand all lines: docs/docs/reference/metaprogramming/macros.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -618,7 +618,7 @@ It is possible to deconstruct or extract values out of `Expr` using pattern matc
618
618
619
619
*`scala.quoted.Const`: matches an expression of a literal value and returns the value.
620
620
*`scala.quoted.Value`: matches an expression of a value and returns the value.
621
-
*`scala.quoted.ExprSeq`: matches an explicit sequence of expresions and returns them. These sequences are useful to get individual `Expr[T]` out of a varargs expression of type `Expr[Seq[T]]`.
621
+
*`scala.quoted.Exprs`: matches an explicit sequence of expresions and returns them. These sequences are useful to get individual `Expr[T]` out of a varargs expression of type `Expr[Seq[T]]`.
622
622
*`scala.quoted.ConstSeq`: matches an explicit sequence of literal values and returns them.
623
623
*`scala.quoted.ValueSeq`: matches an explicit sequence of values and returns them.
0 commit comments