Re:GHC 9.0, supporting linear types
by tome on Thursday December 31, 2020 @06:34AM
(#25591744)
I don't see how, in the presence of unrestricted function types, you can tag values as linear unless you have a separate kind for linear values. I'd be interested to know how Rust does it.
[ Parent
| on HN ]
Affinity is a property of the type in Rust, so any given value is affine or not depending on which type it has.