News for hackers. Stuff that matters.
Re:Dart/Flutter now has macros/metaprogramming by mikenew on Tuesday January 30, 2024 @06:11PM (#39197283)
This is the actual spec: https://github.com/dart-lang/language/blob/main/working/macr...

Not really sure what the linked repo is about.

Re:Dart/Flutter now has macros/metaprogramming by millsteed on Tuesday January 30, 2024 @06:56PM (#39197756)
Thanks for linking the spec. It has been a living document for a long time. I discovered that the implementation had made it into the SDK's master branch. Since it's very early stage and lacking documentation, I made this repo which demonstrates creating a macro that implements some of the most popular codegen functionality Flutter developers use.
Re:Dart/Flutter now has macros/metaprogramming by mikenew on Tuesday January 30, 2024 @08:03PM (#39198345)
Ah, gotcha, very cool. Sorry I just wasn't sure what I was looking at with the repo.