Programming Language for Games, part 3
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sun Nov 2 12:49:47 PST 2014
On 11/1/14 6:25 PM, bearophile wrote:
> Walter Bright:
>
>> D has writefln which does not have printf's issues. There's no reason
>> to add a feature for printf.
>
> The feature we are talking about is not just for D writeln, as I've
> tried to explain several times.
Well maybe then it's time to reassess whether the point was valid and
interesting.
> And D writeln is not verified at compile-time, this is silly for a
> language that tries to be reliable.
Wasn't there a pull request that allowed `writef!"%s %s"(1, 2)` in
addition to what we have now? Should be easy to integrate.
> (Rust printing function is actually
> a macro and it verifies the formatting string at compile-time when
> possible. That's the only good enough option for me for a modern
> statically compiled language).
Is that a best-effort kind of approach? If so, that would be pretty bad...
Andrei
More information about the Digitalmars-d
mailing list