Skip to content
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

RFC: Subtype Checking #1410

Open
Theodus opened this issue Nov 9, 2016 · 3 comments
Open

RFC: Subtype Checking #1410

Theodus opened this issue Nov 9, 2016 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Theodus
Copy link
Contributor

Theodus commented Nov 9, 2016

Add a language construct allowing programmers to get information on subtyping relationships.

https://github.com/ponylang/rfcs/blob/master/text/0026-subtype-checking.md

@Praetonus
Copy link
Member

I'm going to implement the iftype expression first since the change is straightforward. Function specialisations will require more work and will come later.

@SeanTAllen
Copy link
Member

@jemc do you know how much of this was implemented?

@jemc
Copy link
Member

jemc commented Jan 28, 2022

The iftype conditional was implemented: https://github.com/ponylang/rfcs/blob/main/text/0026-subtype-checking.md#the-iftype-conditional

Specialized generic functions were not implemented: https://github.com/ponylang/rfcs/blob/main/text/0026-subtype-checking.md#specialised-generic-functions

They ended up being more complex than Benoit originally anticipated, and also Benoit is no longer involved with this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants