r/ProgrammingLanguages • • Apr 30 '26

The Mutable Value Semantics (MVS): A Non-superficial Study

I’m researching a new semantics for a new language. During this process, I studied the Mutable Value Semantics (MVS) and I wrote a post about it. I simply want to share this study with you all and I'd love to hear your thoughts.

A new post will be coming soon where I'll discuss the limitations I’m finding in current models, and what I’d like to have for my own.

Link: https://federicobruzzone.github.io/posts/MVS.html

28 Upvotes

28 comments sorted by

View all comments

Show parent comment

3

u/SkiFire13 May 01 '26

the only way to ensure the soundness of that snippet is for the unwind to never be catchable

I think it would be fine it you manage to ensure that anything "borrowed" inside the try/std::panic::catch_unwind is not accessible after it finishes.