r/ProgrammingLanguages • u/RishabhRD • 18d ago
Safe Systems-programming with Mutable Value Semantics | Dave Abrahams | Keynote at IWACO 2026
https://youtu.be/op51SyyPJmw?si=P5QH6M8Hdf4_CUUZ
38
Upvotes
View all comments
Show parent comment
3
u/dabrahams 16d ago
Whoa there, pardner! As noted in the talk, we don't have and don't want an implicit-copy trait (similar to Rust's `Copy`). We've discussed having an `@implicitcopy` directive that allows you to say copies should happen implicitly, for prototyping, scripting, etc.
And copying and moving are completely orthogonal operations, so I'm not sure what the connection is.
Local bindings and function parameters are intimately related; you can almost express one in terms of the other and making that different for inout would make the language less uniform. I don't think prohibiting a local
inoutchanges much other than to make some things less convenient. I would then just writemodify(&x.y, fun (y) { ... })and have a local bindingyinside the lambda.Spooky action at a distance is not “all mutation.” The point of MVS is that you can't write any code that does spooky action at a distance—as we define it—in the safe core language subset. Of course people will define things like Rust's `RefCell` using unsafe code and subvert that, and once they do, the properties of the core language can't force the spooky action to be visible in interfaces.