-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
We shouldn't require types for consts and statics unless necessary. const FOO = "foo";
or static bar = 42;
should just work. I propose that we try to infer based only on the RHS, i.e., we do not look at uses of consts/statics. Type error if we can't infer based on that. Although this would break the rule that items must be fully annotated, it would make static/const more consistent with let
.
bluss, JinShil, U007D, EdSaleh, CAD97 and 93 morestepancheg, compiler-errors and kevbot8kwebmaster128, pavlix, NilsIrl, AxlLind, luciusmagn and 14 moredkaste, Anders429, IndigoLily, llogiq, rszyma and 1 more
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.