We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The idea is to have an implicit conversion that converts a T to an Expr[T] using the toExpr conversion. This would allow us to write
T
Expr[T]
toExpr
def plus(n: Int, m: Expr[Int]): Expr[Int] = if (n == 0) m else '{ $n + $m }
instead of
def plus(n: Int, m: Expr[Int]): Expr[Int] = if (n == 0) m else '{ ${n.toExpr} + $m }
The text was updated successfully, but these errors were encountered:
It would be enabled by importing
import scala.quoted.autolift
Sorry, something went wrong.
Fix scala#5986: Make autolift on by default
d724a50
7856b5b
Merge pull request #6038 from dotty-staging/autolift
7ed9a69
Fix #5986: Add autolift implicit conversion
biboudis
No branches or pull requests
The idea is to have an implicit conversion that converts a
T
to anExpr[T]
using thetoExpr
conversion. This would allow us to writeinstead of
The text was updated successfully, but these errors were encountered: