Why doesn't std.variant.visit automatically call the provided delegates?

ixid via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 5 17:56:14 PDT 2016


On Saturday, 5 November 2016 at 20:22:13 UTC, Adam D. Ruppe wrote:
> On Saturday, 5 November 2016 at 20:15:14 UTC, Kapps wrote:
>> That feels like it should be a compiler warning.
>
> I'm now of the opinion that the {} delegates should be 
> deprecated (instead use () {} delegates)... this comes up a lot 
> and there's a few other places too where it is a pain... and it 
> isn't that worth keeping imo.

Have you discussed this with Andrei or Walter? It would be a good 
change.


More information about the Digitalmars-d mailing list