top | item 42871940

(no title)

eseidel | 1 year 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/

discuss

order

elcritch|1 year ago

Thanks, 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 2: https://www.openmymind.net/Basic-MetaProgramming-in-Zig/

bloqs|1 year ago

Thanks!