Currently, annotations follow this syntax in order to support multi-valued annotations:
@myannotation(value1: "one", value2: "two")
For cases when 1 or no value is applicable for an annotation, it would be ideal to use a shorthand form to improve readability.
Single value - likely the most common usage
Is equivalent to
@myannotation(value: "myvalue")
No value - useful for "has annotation" style checks
Is equivalent to
Currently, annotations follow this syntax in order to support multi-valued annotations:
For cases when 1 or no value is applicable for an annotation, it would be ideal to use a shorthand form to improve readability.
Single value - likely the most common usage
Is equivalent to
No value - useful for "has annotation" style checks
Is equivalent to