3 ms·
Dart: Algebraic Data Types
- Alifatisk 2y agoThe technique using pattern matching with sealed classes might be a good workaround for the lack of union types.
- hgyjnbdet 2y agoI'm totally new to ADTs and was following along happily with the shape examples, then we move to dart and suddenly it's all user authentication, and I'm lost. Would have preferred an example in a similar vein to the other language examples first, just to ease me into the complicated stuff.