Conversation

Anyone know of literature on preserving parametricity but also allowing static introspection like D? They seem in conflict.
2
2
You can have your cake and eat it if you have two different quantifiers. One that admits introspection, and one that doesn’t. Definitely interested in this for Pikelet, because static type dispatch is super important for systems programming.
1
Also, thinking about it now, you might want to ensure that introspected types are still thrown away at compile time, so maybe it’s still useful to maintain the distinction 🤔
1
Nice! I was thinking along the lines of a linear variable that get consumed when a type is introspected, so eg. id :: a -> a is still has only one possible implementation if a's associated linear variable (not pictured here) is intact.
1
1
This Tweet is from a suspended account. Learn more
Yeah, I definitely think I've been a bit confused by this! I did watch your 'worldly types' talk a couple of months ago. Is that what you are referring to here? And you're saying multiplicity 0 does not imply that a type can be in 'heaven'?
1