r/ProgrammingLanguages • u/FedericoBruzzone • May 21 '26
Mutable Value Semantics (MVS) or Ownership & Borrowing: A Trade-off Analysis
I'm continuing the research on semantics for a new language. After studying Mutable Value Semantics (MVS) in the first post (reddit discussion), I wrote a follow-up that examines the trade-offs between MVS and the Ownership & Borrowing model.
The post covers:
- Friction points in Rust's borrow checker
- Where Hylo's MVS solves them and where it introduces new trade-offs
- Swift's hybrid approach and its runtime exclusivity checks
- Open questions I'm exploring for my own language design
I'd love to hear your thoughts.
Link: https://federicobruzzone.github.io/posts/MVS-or-ownership&borrowing.html
21
Upvotes
View all comments
Show parent comment
1
u/SkiFire13 May 22 '26
Sorry, I forgot to link it: https://hylo-lang.org/docs/user/language-tour/concurrency/#spawned-work-stops-while-the-caller-still-expects-value
I'm being a bit pedantic, but at that point what's the difference between an error and a panic?
Orthogonally to this, marking error/unwind-inducing functions is a good start, but it's not enough to prevent use-after-move in
catchbranches/destructors.