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
As a dual of lifting (`Expr.apply`), unliftings should be placed in the same namespace (`Expr.unapply`).
* Move `Values.unapply` to `Exprs.unapply`
* Move `Value.unapply` to `Expr.unapply`
* Add `Exprs.apply`
Copy file name to clipboardExpand all lines: docs/docs/reference/metaprogramming/macros.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -617,7 +617,7 @@ It is possible to deconstruct or extract values out of `Expr` using pattern matc
617
617
`scala.quoted` contains objects that can help extracting values from `Expr`.
618
618
619
619
*`scala.quoted.Const`/`scala.quoted.Consts`: matches an expression of a literal value (or list of values) and returns the value (or list of values).
620
-
*`scala.quoted.Value`/`scala.quoted.Values`: matches an expression of a value (or list of values) and returns the value (or list of values).
620
+
*`scala.quoted.Expr`/`scala.quoted.Exprs`: matches an expression of a value (or list of values) and returns the value (or list of values).
621
621
*`scala.quoted.Varargs`: 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
623
623
These could be used in the following way to optimize any call to `sum` that has statically known values.
0 commit comments