-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Support anonymous subtypes #1728
Labels
Area-Language Design
Feature Request
Resolution-Duplicate
The described behavior is tracked in another issue
Verified
Comments
dsaf
changed the title
[Area-Language Design] Support anonymous type implementations and subtypes
[Area-Language Design] Support anonymous interface implementations and subtypes
Apr 1, 2015
dsaf
changed the title
[Area-Language Design] Support anonymous interface implementations and subtypes
[Area-Language Design][Discussion] Support anonymous interface implementations and subtypes?
Apr 1, 2015
This seems to be a duplicate of #13, only with different (and IMO worse) syntax. |
Actually the syntax was very similar, but yeah it was a half-duplicate. |
dsaf
changed the title
[Area-Language Design][Discussion] Support anonymous interface implementations and subtypes?
[Area-Language Design][Discussion] Support anonymous subtypes
Apr 1, 2015
dsaf
changed the title
[Area-Language Design][Discussion] Support anonymous subtypes
[Area-Language Design] Support anonymous subtypes
Apr 1, 2015
dsaf
changed the title
[Area-Language Design] Support anonymous subtypes
[Area-Language Design][Feature Request] Support anonymous subtypes
Apr 1, 2015
Pilchie
changed the title
[Area-Language Design][Feature Request] Support anonymous subtypes
Support anonymous subtypes
Apr 1, 2015
gafter
added
the
Resolution-Duplicate
The described behavior is tracked in another issue
label
Apr 14, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area-Language Design
Feature Request
Resolution-Duplicate
The described behavior is tracked in another issue
Verified
Syntax can be very similar to #13 but I think it should be extended to subtyping other classes as well.
Aside from general usefulness it will prevent potential interface overuse that could happen if only interfaces are supported via #13. I tend to use both interfaces and abstract classes depending on "A is B" vs "A supports B" semantic choices rather than making everything an interface "because DI".
http://www.jot.fm/issues/issue_2005_07/article1.pdf
I think Java supports this as "anonymous classes".
The text was updated successfully, but these errors were encountered: