Am 04.09.2018 um 10:17 schrieb Paul King:
[...]
Basically, I propose making this (using the GROOVY-8703 example):

  @NamedVariant
   Color(Integer  r,Integer  g,Integer  b) {
     this.r = r;this.g = g;this.b = b
   }


Be the same as this:

  @NamedVariant
   Color(@NamedParam Integer r, @NamedParam Integer g, @NamedParam Integer b) {

     this.r = r;this.g = g;this.b = b
   }

reminds me a lot of the code I just saw for the definition of a rest endpoint in spring with annotations for about everything.

Can't the usage of @NamedParam imply @NamedVariant?

Given 2.5 has only been out for a few months, I suspect @NamedVariant
uptake won't be huge at this point and most probably folks aren't relying on
the behavior when the additional marker annotations are left off.
I propose we change this behavior and list it as a breaking change in
the 2.5.3 release notes. If we delay any longer though, I think we will need
to stick with the current design.

I think we should work more with marking new features as experimental

 bye Jochen

Reply via email to