this post was submitted on 15 Jun 2023
6 points (100.0% liked)

Dart Programming Language

132 readers
1 users here now

This sublemmy is a place for everything related to the Dart programming language and its tools besides Flutter (use [email protected] for that)

founded 1 year ago
MODERATORS
 

I've been using the new pattern matching from Dart 3 a lot since the release, and I want to share how much better the experience of writing Dart became for me. I completely replaced Freezed with Dart sealed classes, and they're joyful to use too!

I love Dart!

you are viewing a single comment's thread
view the rest of the comments
[–] fperson 3 points 1 year ago

It's also worth noting that freezed is switching to the Dart 3 pattern matching, too (see https://pub.dev/packages/freezed#legacy-union-types-and-sealed-classes).

Anyways, I think this is a matter of preference, and I've been historically avoiding codegen as much as possible. I'm glad it's now easier to do that, but freezed is still cool and could be really helpful for certain people/scenarios!