On Monday, 14 February 2022 at 01:04:08 UTC, Ali Çehreli wrote:

[...]

Point taken but how deep should we understand library code, not all being Phobos. My pet peeve:

import std.stdio;

void main(string[] args) {
  writefln!"hello"(42);
}

/usr/include/dlang/dmd/std/stdio.d(4442): Error: no property `msg` for type `string`

I am happy that it's caught at compile time but what 'msg' property are we talking about? What does it have to be with me?

I would like it if the

It would be better if the compilation error said:

  Must satify formatSpecsMatchArgs!("hello", int)

Interestingly

   writefln ("hello", 42);

does not throw at runtime.


Reply via email to