Skip to content

Commit d355c9b

Browse files
committed
Update documentation
1 parent 7856b5b commit d355c9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/docs/reference/other-new-features/principled-meta-programming.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,12 @@ Using lifting, we can now give the missing definition of `showExpr` in the intro
600600
That is, the `showExpr` method converts its `Expr` argument to a string (`code`), and lifts
601601
the result back to an `Expr[String]` using the `toExpr` wrapper.
602602

603+
**Note**: the `toExpr` extension method can be ommited by importing an implicit
604+
conversion with `import scala.quoted.autolift._`. The programmer is able to
605+
declutter slightly the code at the cost of readable _phase distinction_ between
606+
stages.
607+
608+
603609
## Implementation
604610

605611
### Syntax

0 commit comments

Comments
 (0)