You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this style, a user would be able to specify things about an argument without needing to use named arguments, allowing us to workaround both problems and provide non-constant runtime values as part of the annotation metadata
The text was updated successfully, but these errors were encountered:
Currently this is not possible because we use
ClassfileAnnotation
, which only allows constants.StaticAnnotation
would in theory let us use expressions, but that doesn't work for annotating arguments while using named arguments in the annotation due to https://users.scala-lang.org/t/how-to-use-named-arguments-in-scala-user-defined-annotations/4163.A workaround for this would be to explode the singular
@arg
annotation:Into a collection of single-value annotations:
Using this style, a user would be able to specify things about an argument without needing to use named arguments, allowing us to workaround both problems and provide non-constant runtime values as part of the annotation metadata
The text was updated successfully, but these errors were encountered: