ponyc icon indicating copy to clipboard operation
ponyc copied to clipboard

RFC: Subtype Checking

Open Theodus opened this issue 9 years ago • 3 comments

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

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

Theodus avatar Nov 09 '16 21:11 Theodus

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

Praetonus avatar Nov 09 '16 23:11 Praetonus

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

SeanTAllen avatar Jan 27 '22 03:01 SeanTAllen

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.

jemc avatar Jan 28 '22 16:01 jemc