3 ms·
Former Eng. Dir for Dart, co-founder of Flutter, here. I'd like to believe this is a good thing for the Dart project, but only time will tell. My hot take her
by eseidel 2y ago
Former Eng. Dir for Dart, co-founder of Flutter, here.
I'd like to believe this is a good thing for the Dart project, but only time will tell. My hot take here: https://shorebird.dev/blog/dart-macros/ https://shorebird.dev/blog/dart-macros/
- bloqs 2y agoThanks!
- elcritch 2y agoThanks, good take. Especially if some of the pieces are still being added. In my humble opinion, you can handle many cases like serialization better with 'compileTime' or comptime features though I'm partial to macros. Especially with core compile time constructs like 'fields' [1, 2]. Though those require some abilities dart's compiler may not have or be able to do efficiently. That'd be a bummer, as even C++ is finally getting compile time reflection. 1: https://nim-lang.org/docs/iterators.html#fieldPairs.i%2CT https://nim-lang.org/docs/iterators.html#fieldPairs.i%2CT 2: https://www.openmymind.net/Basic-MetaProgramming-in-Zig/ https://www.openmymind.net/Basic-MetaProgramming-in-Zig/