News for hackers. Stuff that matters.
Re:An update on Dart macros and data serialization by suddenexample on Wednesday January 29, 2025 @06:01PM (#42872440)
I might be missing something here, don't records already exist? https://dart.dev/language/records
Re:An update on Dart macros and data serialization by cageface on Thursday January 30, 2025 @01:49AM (#42875532)
They exist but they're still missing a lot of things you'd want in a data class like copyWith, serialization etc.

In practice in a Dart app you usually use freezed or something similar: https://pub.dev/packages/freezed