werediver/sum_types.dart
A code generator enabling sum-types in Dart
When building applications with Dart, developers often need to model data that can take one of several distinct forms. This project helps Dart developers by generating boilerplate code to easily define and work with these 'sum-types,' like an `Option` type that is either `Some` value or `None`. It takes a simple definition of a sum-type and outputs the necessary Dart code to use it safely and effectively.
No commits in the last 6 months.
Use this if you are a Dart developer who needs to create robust, type-safe data structures that represent a value that can be one of several possibilities.
Not ideal if you are not a Dart developer or if your programming language already has native support for sum-types or algebraic data types.
Stars
40
Forks
7
Language
Dart
License
MIT
Category
Last pushed
Nov 12, 2024
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/werediver/sum_types.dart"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
inducer/cgen
C/C++ source generation from an AST
vil02/puzzle_generator
Generates python code representing a puzzle
westandskif/convtools
convtools is a specialized Python library for dynamic, declarative data transformations with...
numen31337/copy_with_extension
Auto-generate `copyWith` methods for your Dart classes.
finsberg/gotranx
Next generation ODE translator