Re:Swift Evolution: Actors
by slavapestov on Tuesday March 16, 2021 @06:28PM
(#26484045)
There are also the various static checks that prevent you from accessing actor-isolated state outside the actor, or passing non-Sendable state across actor boundaries. It's not clear how a general language extension mechanism could implement those.
[ Parent
| on HN ]
I wonder if Rust can do that, by using data lifetimes incompatible between actors, thus protecting them from being passed around beside sending.
I also don't see why a namespace, like that of a function, won't be enough isolation from peeking between actors.
Somehow Scala got Akka, the actor framework, without having to tailor the language for that.