|
|
|
|
|
by caim
337 days ago
|
|
The main point of Affine logic is that it doesn't allow contraction, and the Rust type system does allow different forms of contraction. How exactly is Rust an "affine language"? Also, the claims about Curry-Howard correspondence are wrong. It does not prove that rust is an affine language: https://liamoc.net/forest/loc-000S/index.xml But Swift DOES have affine types with the "Non copyable" types that doesn't allow contraction. |
|
Their being that way is essential for the borrow checker to provide the memory-safety guarantees it provides.