Re: final switch on Algebraic
On Sunday, 29 March 2015 at 23:19:31 UTC, Freddy wrote: Is there any way to do a final switch statement in std.variant's Algebraic. Not currently. However, std.variant.visit is probably what you want. It enforces that you handle all types contained in the Algebraic. import std.variant;
final switch on Algebraic
Is there any way to do a final switch statement in std.variant's Algebraic.