Annotations go above, not to the left. #13
alilleybrinker
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A lot of languages end up with annotations attached to functions that look like this:
This is annoying! Particularly when there's a required order to the annotations and you're not sure what it is, or have to go through at least one loop of compilation and correction. It's also weird because each of these is tying into some distinct analysis (reachability, overriding, async-transformation, etc.) but they all sort of appear the same or even related (alas,
public static final async
isn't a sentence, it's four distinct annotations grouped for no clear reason other than "we weren't sure where to put them"). Instead, annotations ought to be above the function, like so (syntax is non-specific, just illustrating the concept):Is it longer? Yes. Is it clearer that these are distinct annotations? Yes. I like it more this way.
Beta Was this translation helpful? Give feedback.
All reactions