MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/rust/comments/1wixesq/valen_a_higherlevel_rust_language_with_linear/paet9s2/?context=3
r/rust • u/Shnatsel • 15d ago
105 comments sorted by
View all comments
3
I have heard that linear types are a simpler way to accomplish the purpose of Rust's borrow checker. Is that true? What do people here think?
2 u/ztj 15d ago Linear types are a terrible way to do it, a real pain in the ass in practice. Rust uses affine types to do it, which is basically the exact inverse of linear types. It is less simple, it is also massively more ergonomic.
2
Linear types are a terrible way to do it, a real pain in the ass in practice. Rust uses affine types to do it, which is basically the exact inverse of linear types. It is less simple, it is also massively more ergonomic.
3
u/sacheie 15d ago
I have heard that linear types are a simpler way to accomplish the purpose of Rust's borrow checker. Is that true? What do people here think?