3 ms·
I guess they want to force you to choose interpolator. So that you won't implicitly use STR when you should have explicitly use SQL.
by scotty79 3y ago
I guess they want to force you to choose interpolator. So that you won't implicitly use STR when you should have explicitly use SQL.
- 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.