On Tuesday, 9 February 2016 at 14:38:23 UTC, Andrei Alexandrescu wrote:
On 02/09/2016 07:46 AM, Jakob Ovrum wrote:


void main()
{
     import std.stdio : stdout;

     int a = 42;
     string b = "foo";
     float c = 3.14;

     dump!(a, b, c)(); // a = 42, b = foo, c = 3.14
stdout.dump!(a, b, c)(" | "); // a = 42 | b = foo | c = 3.14
}

I think this is good stuff and should go in Phobos. Where particularly? -- Andrei

I can't really see the applications beyond a role as a simple lowtech debugging aid, but since it uses std.stdio I guess that's an OK place to put it.

Reply via email to