menu
151 tokens
Decorators
decorators on expressions
Decorators
JS/TS already sorta kinda has decorators, sometimes
extended placement
decorators on expressions
newtypes as decorators
incl. union newtypes
queryable
@allow,@warn,@deny,@forbid, and@expecttune diagnostics lexically; conditional forms may use static metadata and carry a reason@unsafemarks an unsafe operation, while@safeexposes a checked API whose implementation contains unsafe operations@derivesynthesizes compiler-known interfaces such asCopy,SharedSafe,Clone,Default, comparison, formatting, hashing, and serialization capabilities