Feedback Wanted on Homegrown @nogc WriteLn Alternative
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Fri Oct 3 00:38:22 PDT 2014
"H. S. Teoh via Digitalmars-d" <digitalmars-d at puremagic.com> wrote:
> On Sat, Sep 27, 2014 at 01:06:24PM +0200, Andrej Mitrovic via Digitalmars-d wrote:
>> On 9/27/14, H. S. Teoh via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
>>> writefln!"...format string here"(... /* arguments here */);
>>
>> Mmm, I like this. It would be one of those killer little features to
>> show in a talk. Slide 1:
>>
>> // oops, forgot an %s
>> writefln("%s %s", 1, 2, 3);
>>
>> Slide 2:
>>
>> // Programmer error caught at compile-time!
>> writefln!("%s %s")(1, 2, 3);
>
> Alright, today I drafted up the following proof of concept:
[snip]
Worth pursuing. Please submit an enh request and follow up there. Thanks!
-- Andrei
More information about the Digitalmars-d
mailing list