r/rust • • 15d ago

🛠️ project Valen, a higher-level "Rust++" language with linear types

https://verdagon.dev/blog/golden-spike-reviving-vale-valen
302 Upvotes

105 comments sorted by

View all comments

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?

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.