Dart/Flutter now has macros/metaprogramming
1–10 of 129 posts
Re: Dart/Flutter now has macros/metaprogramming
#2Not really sure what the linked repo is about.
Re: Dart/Flutter now has macros/metaprogramming
#3Re: Dart/Flutter now has macros/metaprogramming
#4This 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
#5[flagged]
Re: Dart/Flutter now has macros/metaprogramming
#6Re: Dart/Flutter now has macros/metaprogramming
#7Looks very similar to the Reflection API in Java.
Dart has runtime reflection and annotations that predate this. The benefit of making this compile time are mainly performance.
Re: Dart/Flutter now has macros/metaprogramming
#8Looks very similar to the Reflection API in Java.
Re: Dart/Flutter now has macros/metaprogramming
#9Looks very similar to the Reflection API in Java.
It's more akin to Java's annotation processor. It's generating code at compile time and not runtime. Dart has runtime reflection and annotations that predate this. The benefit of making this compile time are mainly performance.
Re: Dart/Flutter now has macros/metaprogramming
#10* instant compilation
* amazing tooling
* null safety
* typed
I could go on.