top | item 24155406

(no title)

stjepang | 5 years ago

This is being worked on: https://github.com/rust-lang/rust/issues/67984

discuss

order

skohan|5 years ago

Neat. It's interesting that they've chosen just plain braces to denote the argument insertion; i.e: "text {value}" rather than something like "text ${value}" which seems to be what most languages use. I guess there must be a way to escape it if you just want braces in your string.

stjepang|5 years ago

Right, there is a way - to escape braces and print "text {value}" rather than the actual value, you'd use "text {{value}}"