raulraja
10/13/2020, 10:01 PMraulraja
10/13/2020, 10:02 PMedrd
10/15/2020, 9:28 PM@withTransaction
and @with
examples suggested an alternative meaning to @
, not the annotation one. Defining decorator fun foo
allows @foo fun other()
which would be a syntax to "apply" the decorator. Unfortunately, it's ambiguous with the annotation syntax.elizarov
10/16/2020, 10:21 AM@
to mean both a use of an annotation and an application of a decorator. However, our vision is that a naming convention will help to see through ambiguities in practice. You'll usually have annotation names starting with an uppercase letter, like @Deprecated
and decorator names starting with a lowercase letter, like @with
.