Interpolated strings
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 18 17:08:19 PDT 2017
On 4/18/2017 2:56 PM, Jonathan Marler wrote:
> Have you thought about supporting format specifiers as well? I looked at the C#
> version and it looks like they can specify them using a colon like this:
>
> $"{a} in hex is {a:x}"
There are additional problems, such as:
$"{a} in %s {b}"
and positional parameters:
$"{a} in {0}"
Of course, the easiest solution is to just disallow that stuff.
More information about the Digitalmars-d
mailing list