Re:Dart Macros and Focus
by pie_flavor on Monday February 03, 2025 @08:55PM
(#42926512)
Macros are capable of much the same thing as reflection, but without the reflection part. Anything you would use an annotation/decorator/attribute/etc for, can be done as a macro to eliminate the runtime performance impact and the vector for action-at-a-distance. In addition to removing internal copy-pasting/templating when you just can't quite replace it with an interface instead.
[ Parent
| on HN ]
There are no comments on this comment yet.