4 ms·
Exactly. A specific API. Foe SQL that is good, but for smaller things a proper interpolation thing is great.
by bjoli 2y ago
Exactly. A specific API. Foe SQL that is good, but for smaller things a proper interpolation thing is great.
- neonsunset 2y agoI was just showcasing that you can have both - there is regular string interpolation and there are APIs to accept interpolated expressions and then handle them arbitrarily (you can't pass a regular string produced by an interpolation to FromSql(expr), only to FromSqlRaw which makes IDE yell at you to make sure you know what you are doing), without even having to materialize the string if that isn't the intention. Java ended up having neither which seems rather extreme.