Closed Iltotore closed 2 weeks ago
Unfortunately, Dotty does very less desugaring/reduction for these two examples. Supporting these alternatives would imply adding much complexity for little gains.
It seems that this case is already handled by scala.quoted.FromExpr
which what the new ExprDecoder
is based on so adding interpolation support, while less trivial than concatenation, might still be possible.
When evaluating a String at compile-time, concatenated Strings are supported:
but these alternatives are not supported:
Automatic
toString
String interpolation
When #227 is completed, it would improve usability of String constraints at compile-time.