On Monday, 23 October 2017 at 21:42:03 UTC, Atila Neves wrote:
On Monday, 23 October 2017 at 21:14:18 UTC, bauss wrote:
On Monday, 23 October 2017 at 12:48:33 UTC, Atila Neves wrote:
On Monday, 23 October 2017 at 09:13:45 UTC, Satoshi wrote:
On Wednesday, 18 October 2017 at 08:56:21 UTC, Satoshi wrote:
[...]

Whats about this one?

auto foo = 42;
auto bar = "bar";
writeln(`Foo is {foo} and bar is {bar}`);

writeln("Foo is ", foo, "and bar is ", bar");

Two more characters.

Atila

Okay, but what about now?

void sendAMessage(string message)
{
    ....
}

sendAMessage(text(...));

Atila

But that goes against what you just said with "4 characters more" since text is 4 characters. It's also an extra import which you could avoid with string interpolation.

Reply via email to