Custom String Templates

This all just sounds really dangerous and prone to introducing SQL injection attacks. Why not just use a type safe DSL builder (which knows which parts needs to be escaped in which way) or plain prepared statements instead of String manipulation.

I find this proposed feature mainly useful for translating Strings. Kotlin String templates are really unhelpful if you want to to put out nicely formatted and localizable text and something like this would probably help a lot.

1 Like