Skip to content

Conversation

@nsajko
Copy link
Member

@nsajko nsajko commented Jan 22, 2024

Clear up some things, state some expected properties and limitations, add cross-references, add more examples.

@nsajko nsajko added the docs This change adds or pertains to documentation label Jan 22, 2024
@nsajko nsajko force-pushed the doc_subtype branch 4 times, most recently from 2a36b9d to 6de6b29 Compare January 29, 2024 20:58
@nsajko
Copy link
Member Author

nsajko commented Feb 2, 2024

Is this OK now?

@nsajko nsajko added the types and dispatch Types, subtyping and method dispatch label Feb 4, 2024
Copy link
Member

@fingolfin fingolfin left a 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

@nsajko
Copy link
Member Author

nsajko commented Feb 11, 2024

bump

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`.
Copy link
Member

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.

Copy link
Member Author

@nsajko nsajko Feb 12, 2024

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.

@fingolfin
Copy link
Member

@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.
@fingolfin
Copy link
Member

I believe this is ready for merging but let's see if @vtjnash is happy with it now :-)

@vtjnash
Copy link
Member

vtjnash commented Feb 16, 2024

I made a couple more style and linguistic updates. I think this is accurate and useful now

@nsajko
Copy link
Member Author

nsajko commented Feb 21, 2024

merge?

@vtjnash vtjnash merged commit 65f24da into JuliaLang:master Feb 21, 2024
@nsajko nsajko deleted the doc_subtype branch February 22, 2024 12:34
tecosaur pushed a commit to tecosaur/julia that referenced this pull request Mar 4, 2024
Clear up some things, state some expected properties and limitations,
add cross-references, add more examples.

Co-authored-by: Jameson Nash <[email protected]>
mkitti pushed a commit to mkitti/julia that referenced this pull request Mar 7, 2024
Clear up some things, state some expected properties and limitations,
add cross-references, add more examples.

Co-authored-by: Jameson Nash <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs This change adds or pertains to documentation types and dispatch Types, subtyping and method dispatch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants