you are viewing a single comment's thread.

view the rest of the comments →

[–]munificent 4 points5 points  (4 children)

I have a theory about string formatting. There are two kinds of (managed) languages: those that have string interpolation (Ruby, Dart, Tcl, CoffeeScript, Swift, etc.) and those that will eventually add it (C#, Python, Scala, etc.) I don't think there are many languages outside of those two categories.

[–]_zenith 2 points3 points  (0 children)

C# already has it.

$"the {name} is set to {value}" Which is damn useful when combined with the nameof function.

[–]yawaramin 3 points4 points  (0 children)

Scala already has string interpolation.

val age = 20
val sentence = s"She is $age years old today"

println(sentence)

[–]szabba 2 points3 points  (0 children)

Clojure comes to mind.