String Interpolation
String interpolation allow using variables when defining a string inline.
- Java has String Templates since Java 21
- Go suggests using
fmt.Sprintf
, declined proposal
TODO
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
- https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html TypeScript can even have literal on Type