> What I would like from FPLs and Rust, is algebraic data types (yeah, I know 
> about Nim macros to emulate them) instead of object variants, but that's too 
> big a change at this stage of Nim's existence.

For me

  * variant/tagged unions/discriminated unions == Sum Type,
  * tuple/objects/records == Product Type,
  * supporting Sum Type + Product Type == supporting Algebraic Data Types



Am I missing something?

[https://cs242.stanford.edu/f19/lectures/03-2-algebraic-data-types#variants](https://cs242.stanford.edu/f19/lectures/03-2-algebraic-data-types#variants)

Reply via email to