Re:GHC 9.0, supporting linear types
by sa1 on Wednesday December 30, 2020 @01:59PM
(#25584754)
Rust has affine types (values can be used upto 1 time), which are similar to linear types(values can be used exactly once).
Affine types are slightly more general, but offer less guarantees about your program. To add back some guarantees, Rust also has lifetime analysis.
So for most common use-cases, you will be able to use Rust and Haskell for similar guarantees. But Iām also eager to see what unique use-cases will be enabled by each of them.
So for most common use-cases, you will be able to use Rust and Haskell for similar guarantees. But Iām also eager to see what unique use-cases will be enabled by each of them.