-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
doc: expand the <: doc string
#53001
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
Conversation
2a36b9d to
6de6b29
Compare
|
Is this OK now? |
fingolfin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but would be good to know if @Keno is happy now
|
bump |
base/operators.jl
Outdated
| Subtyping relation, defined between two types. The returned value is of type | ||
| `Bool`. | ||
| A type `S` is said to be a *subtype* of a type `T` if and only if we have `S <: T`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a tautology. I am not sure it helps to define <: in terms of itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea was more to define what "subtype"/"subtyping" means in Julia in terms of <:. Not sure if it's better now.
|
@nsajko thanks for the improvements, I like it! I left two more minor suggestions. |
Clear up some things, state some expected properties and limitations, add cross-references, add more examples.
|
I believe this is ready for merging but let's see if @vtjnash is happy with it now :-) |
|
I made a couple more style and linguistic updates. I think this is accurate and useful now |
|
merge? |
Clear up some things, state some expected properties and limitations, add cross-references, add more examples. Co-authored-by: Jameson Nash <[email protected]>
Clear up some things, state some expected properties and limitations, add cross-references, add more examples. Co-authored-by: Jameson Nash <[email protected]>
Clear up some things, state some expected properties and limitations, add cross-references, add more examples.