Consider reserving keywords for upcoming features #6096
Labels
1_0_E2E
breaking-change
A change that might cause specs or code to break
compiler:core
Issues for @typespec/compiler
design:needed
A design request has been raised that needs a proposal
triaged:core
Milestone
All those reservations needs to only prevent declaration names to use them, property, variant and enum member names should all be allowed to use those.
Potential keywords:
flag
(For a flag enum, I think it might be quite beneficial for doing built in things like Foo.a | Foo.b)data
We talked many times about having data decorators(auto set and provide read accessor for the input)state
We talked about the possibility to define state engine in TypeSpecpartial
Partial modelsmacro
Macrosprivate
Mark types as privatelocal
Mark types/const as local/privatekeyof
Similar to typescriptpackage
Some package declarationmetadata
Metadata registrationenv
define environment(Retrieve value from environemnt variable)arg
similar but with some Cli argumentsdeclare
Keyword for making a declaration of an expression(unification of expression and declaration)sealed
Explicitly seal a modelarray
if we ever wanted to try to detach arrays from modelsstruct
similar to aboveIf we add back some logic into the language(
if
else
will remain reserved after projection removal)switch
case
match
The text was updated successfully, but these errors were encountered: