Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
union-type Open-Source Projects
-
freezed
Code generation for immutable classes that has a simple syntax/API without compromising on the features.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
There is the `sealed` class modifier which allows for exhaustive matching on possible types: https://dart.dev/language/class-modifiers#sealed
There's also a package called freezed which offers similar utility (you might already be familiar with this seeing as you mentioned pattern matching): https://pub.dev/packages/freezed
I recall there being a reason unions aren't generally implemented, though I'm not sure where I read it. It was to do with union types being unnecessarily complex for the compiler and the code they tend to produce, at no real benefit to the programmer or the resulting program. Go's lack of unions is essentially based around the same reasoning.
union-types related posts
- Fluvera is a Flutter SDUI package designed to simplify the process of building user interfaces (UIs) based on JSON server responses.
- Dart 3.0: Best New Features & Why You Should Care
- 🎉 Introducing MODDDELS: A Powerful Package for Robust, Self-Validated Models in Flutter & Dart
- Class Constructor Plugins- Are there any?
- Firestore partial doc updates and type safety
- Flutter Production Boilerplate and tutorials on Medium
- Is 'Freezed' code generator worth the boilerplate?
-
A note from our sponsor - InfluxDB
www.influxdata.com | 26 Apr 2024
Index
Sponsored