[Bug 16104] [XQ30] Distinct annotation names; and error XQST0116

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16104

--- Comment #4 from Jonathan Robie <jonathan.robie@gmail.com> 2012-06-12 16:27:32 UTC ---
(In reply to comment #0)
> (1) I think there should be a rule that the annotations on a variable or
> function should have distinct names. Without such a rule, annotion assertions
> don't seem to make much sense. We don't seem to have such a rule at the moment.

The WG disagrees - it makes sense to allow multiple annotation assertions with
the same name and different parameters.

> (c) there is no corresponding error for function annotations.
> 
> If we fix (1) above then we can write this as
> 
> It is a static error [err:XQST0116] if the set of annotations on a function
> declaration or variable declaration inlcudes both a %public and a %private
> annotation.

The WG disagrees. There are no annotation assertions for %public and %private.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 12 June 2012 16:27:40 UTC