Proposal: simplify access to static members #3836
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
When accessing static member of class you must write class name followed with dot before member name. But this is redundant when using that member inside the class itself.
Let's see an example (it's a little bit far-fetched but shows the case):
My suggestion is to extend the functionality of
static
keyword (just to not introduce a new one) so it will help eliminate the need to continuously repeat class name.With this feature our example became shorter and more readable:
The text was updated successfully, but these errors were encountered: