I must admit, the choice of the default value syntax for annotations felt 
less than intuitive to me when I first saw it.
One can get used to it, but it still feels weird...

New proposal for default method syntax kind of feel better aligned to the 
most of the language, where all the accessor modifier annotations of a 
method preceed the type and name of the field/method/type...

neljapäev, 15. november 2012 3:39.02 UTC+2 kirjutas Simon Ochsenreither:
>
>
> The rationale was to make default a modifier instead of even more special 
>> syntax than it needs to be. 
>
>
> The reasoning is interesting, even though I disagree that it would cause 
> even more special syntax. The syntax exists since Java 5 already:
>
> String foo() default "";    // default value syntax for annotations
> String foo() default {...}; // (old) default method syntax
> String default foo() {...}; // (new) default method syntax (!?)
>
>

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/javaposse/-/tw0M_mAXZYoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to