Just wondering, is there any reason @FacetMeta only works with Types and not Slots?
I was hoping to use @FacetMeta{inherited=true} on afIoc@Inject so I could annotate fields in mixins.
As all overriding slots need to be declared with override it should be of no surprise that, as well as the signature, you're also bound by the facet meta.
I mostly never did it just because it was very difficult to make it work fast. I already had a clean hook to flatten the inheritance types for a given type. But figuring out the override(s) of a slot is more computationally expensive. Plus it is a lot more vague exactly how the semantics should work.
SlimerDude Thu 5 Sep 2013
Just wondering, is there any reason
@FacetMeta
only works with Types and not Slots?I was hoping to use
@FacetMeta{inherited=true}
on afIoc@Inject
so I could annotate fields in mixins.As all overriding slots need to be declared with
override
it should be of no surprise that, as well as the signature, you're also bound by the facet meta.See Facet inheritance #1293 for more info.
brian Thu 5 Sep 2013
I mostly never did it just because it was very difficult to make it work fast. I already had a clean hook to flatten the inheritance types for a given type. But figuring out the override(s) of a slot is more computationally expensive. Plus it is a lot more vague exactly how the semantics should work.