Comments (1)
For macro constructor calls we currently have specificied some implicit conversions to Code objects, so you could just do @Assert(startValue => 0)
as an example, and the macro would actually get a Code object representing that expression.
But, I think we are going to remove these implicit conversions, as they are too specialized to macros and don't generalize to regular metadata annotations (which I think Assert is in this example).
We do still want some way of passing a Code expression to a macro though, so we probably do want some way of creating a "meta expression" type thing, which is given as Code to the macro, and is statically analyzed. This might be a reasonable syntax for that.
from language.
Related Issues (20)
- Consider generalizing macros over applications and annotations HOT 10
- Make `class` a contextual keyword HOT 6
- Viability of extension constructor tear-offs. HOT 1
- Serializable `MacroExecutionResult` to allow rerunning subset of macros for a library cycle HOT 5
- Consider whether to loosen "must match the original" in augmentation spec HOT 11
- Generic method constrained to objects supporting serialization HOT 2
- Why is Object not considered a superclass for null? HOT 3
- Consider allowing macro applications on the same library to be independent or one-way dependent
- `Monad Coproducts`/`Data types à la carte` in Dart HOT 3
- Problem with hierarchical generic types HOT 3
- Add the concept of Functional Interface to adopt the concept of Higher Order Function HOT 16
- Static Analysis Fails to Detect Type Mismatch in Generic With Nullable Types HOT 4
- Enable CFA / exhaustiveness-checking for exhaustive switch statements HOT 3
- Infer generic classes in subclasses HOT 2
- Non-spec compliant behavior of dynamic dispatch on Object methods with unusual arguments HOT 18
- Create an Open Source foundation for the Dart language HOT 2
- Consider creating `macros` repo; how to use it for `dart_model` HOT 6
- Allow a library prefix (not an import prefix) to support access to shadowed names HOT 6
- More flexibility for the `base` keyword
- Consider moving _macros/macros into _fe_analyzer_shared for breaking changes HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language.