-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CS2 Discussion: Features: Static keyword #4963
Comments
From @mrmowgli on 2017-03-17 07:22 I actually would like to avoid adding an alternate keyword for this. I think current way of dealing with it is consistent with the language. I can see some confusion around this, but for the most part that falls back to adding to the documentation. |
From @mrmowgli on 2017-03-17 07:22 Also it looks like we are avoiding adding get/set to the language. |
From @GeoffreyBooth on 2017-04-10 00:17 Closing per consensus in coffeescript6/discuss#17 |
From @GeoffreyBooth on 2017-01-27 06:32
CoffeeScript classes already have support for static methods, via
@methodName
syntax:Assuming we implement getters and setters, and assuming their syntax looks something like this:
Then I think we should also support the
static
keyword, for consistency:Please keep discussion of
get
andset
over in coffeescript6/discuss#17. If we decide not to implementget
andset
, or if we implement them in some syntax unlike what’s here, then we don’t need thestatic
keyword. I propose we add thestatic
keyword only if we addget
andset
keywords. We would also keep the@methodName
syntax, for backward compatibility.The text was updated successfully, but these errors were encountered: