On Tuesday, 24 October 2017 at 08:06:55 UTC, Atila Neves wrote:
On Tuesday, 24 October 2017 at 07:17:08 UTC, Satoshi wrote:
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:
[...]

Okay, but what about now?

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

sendAMessage(text(...));

Atila

boilerplate...

True, but in my opinion not enough to justify complicating the language. One could also always do:

import std.conv: t = text;
sendAMessage(t("Foo is ", foo, " and bar is ", bar"));

If it were me I'd just make `sendAMessage` take a variadic template and call text internally.

Atila

so, we should complicate source code instead of the language?

Actually, you provide one of the best examples why we should add this syntactic sugar.

Reply via email to