dadhi / ImTools

Fast and memory-efficient immutable collections and helper data structures
MIT License
232 stars 10 forks source link

Consider the empty non-value Case for DU #22

Closed dadhi closed 4 years ago

dadhi commented 5 years ago

Example:

class X : union<X, A.value, B.value> {}
class A : @case<A> {}
class B : @case<B, string> {}
dadhi commented 4 years ago

Item<TItem>.Value