3 ms·
> I guess they want to force you to choose interpolator. In which case using `\{}` as the interpolation signal is completely unnecessary, because the new synta
by masklinn 3y ago
> I guess they want to force you to choose interpolator.
In which case using `\{}` as the interpolation signal is completely unnecessary, because the new syntax already solves the backward compatibility concerns.
Using just `{x}` like C# and Python, or `$x`/`${x}` like Kotlin, would have sufficed and made the syntax a lot more palatable.
So would using postfix format specifiers, because that printf-style prefix garbage is just gnarly.
- scotty79 3y ago\{ protects you from forgetting to use interpolator at all. No other syntax that uses same delimiters as string literal would.