-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Add a section on subtyping #547
Comments
I worked on this a bit a while ago, but never got around submitting a PR because I'm not even sure if the docs are the most appropriate place for them. The rules are:
There would be examples for each of those rules using |
If not in the book, where? I mean, some examples could go into a tutorial, but I wouldn't expect it to cover all these rules, just the most used ones. |
I think the language reference is exactly where this needs to be documented. |
I'm confused a bit with subclass is a subtype of class. Actually subclassing and subtyping are orthogonal concepts ? |
To start with, given that probably the semantics are still a bit in flux, it can be a stub with just the basics.
The text was updated successfully, but these errors were encountered: