-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Slice currently provides both file level attributes (with the [[...]]) syntax, and attributes for module openings, with the standard [...] syntax.
This is redundant and possibly misleading.
Each Slice file must have exactly one module opening (before any other definition), and two "identical" module openings in separate files can have different attributes. The attributes only apply to this particular module opening ... or file, since we have exactly one module opening per file.
See https://docs.icerpc.dev/slice2/language-guide/attributes.
Proposal
Simplify attributes by replacing file level attributes by module opening attributes.
For example:
[[allow(Deprecated)]]
module SampleModulebecomes
[allow(Deprecated)]
module SampleModulewith the same semantics.
Reactions are currently unavailable