On Tuesday, 10 April 2018 at 12:34:07 UTC, aliak wrote:
this is a neat trick:
AliasSeq!(T0, T1) values;
Is that usage documented somewhere, or is it somewhere in
Also, can Algebraic be fully replaced with this version then or
is there some functionality that would stop it going through?
It's called "type sequence instantiation", and it's documented in
the "Compile-time Sequences" article  on dlang.org. I
discovered it reading the source of the 'tagged_union' dub
package . It's not mentioned anywhere in the language spec, as
far as I can tell.
SumType should be capable of doing anything that Algebraic can do
(if it's not, please open an issue on Github!), but it's not a
drop-in replacement, and it's still a work in progress.
Documentation for the current version (more or less) is available
at http://sumtype.dpldocs.info/index.html. If there are any
particular features you'd like to see, let me know, and I'll do
my best to add them.