Why doesn't std.variant.visit automatically call the provided delegates?
Chris Wright via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 5 17:19:57 PDT 2016
On Sat, 05 Nov 2016 20:15:14 +0000, Kapps wrote:
> Admittedly I doubt I've ever tried () => { }, but given languages
> like C# which this syntax was partially taken from(?)
D had delegates of that form years before C# had short-form delegates.
Otherwise it would likely have followed suit.
More information about the Digitalmars-d
mailing list