ponyc icon indicating copy to clipboard operation
ponyc copied to clipboard

RFC: gencap-write

Open Theodus opened this issue 8 years ago • 2 comments

Add #write, a new gencap for use in type parameter constraints, implying the capability set: {iso, trn, ref}.

https://github.com/ponylang/rfcs/blob/master/text/0043-gencap-write.md

Theodus avatar Jul 19 '17 19:07 Theodus

@jemc it looks like you had this almost finished when the rfc went in, do you want to finish this off?

SeanTAllen avatar Jan 27 '22 04:01 SeanTAllen

Sorry about this.

It turned out that this gencap didn't actually solve my problem (5 years ago), and neither I nor anyone else has had a pressing reason to add this.

Additionally, now (5 years later) that I know more about the subtle edge cases with generic subtyping, I'm a lot more wary about adding new generic caps, since that means more tricky edge cases.

So if nobody is actively needing this feature, and it risks introducing new bugs, I suggest we don't continue with this at this time.

jemc avatar Apr 26 '22 18:04 jemc