This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: annotations for Kawa
* Per Bothner [2010-12-05 21:02] writes:
> On 12/05/2010 12:32 PM, Helmut Eller wrote:
>> * Per Bothner [2010-12-05 20:01] writes:
>>>> Is the @ new lexical syntax or just a naming convention?
>>>
>>> It's a naming convention - I don't intend to change the reader.
>>> Instead, this would be "recognized" by Scheme.checkDefaultBinding
>>> - the same place where we also recognize TypeName? and quantities.
>>
>> So @AnnotationType denotes the annotation AnnotationType
>> like<FOO> denotes the type named FOO.
>
> Yes. (Though the angle brackets are semi-deprecated. The symbol FOO
> dnotes the type FOO if there is no lexical name FOO or FOO in the
> current environment *and* there is a class FOO.)
Is there a difference between java.lang.Deprecated and
@java.lang.Deprecated?
Helmut