Is it similar to Haskell’s Data.Dynamic and Rust’s std::any::Any? How is it related to sum types mentioned in article? Are these dynamic objects the only way to emulate sum types in D?
Data.Dynamic
std::any::Any
Is it similar to Haskell’s
Data.Dynamic
and Rust’sstd::any::Any
? How is it related to sum types mentioned in article? Are these dynamic objects the only way to emulate sum types in D?