Simply put, you can only share something which you have exclusive ownership (at which time you lose access to it), or something which is immutable. If you can write to an object only you can read it as well. If you got something you can read, no one else can write to it, though other might be able to read it as well. Under some circumstances you can change the "capabilities" of an reference.
probably noob programming question: how does Pony guarantee data-race, thread safety if message passing is mainly by reference?
Simply put, you can only share something which you have exclusive ownership (at which time you lose access to it), or something which is immutable. If you can write to an object only you can read it as well. If you got something you can read, no one else can write to it, though other might be able to read it as well. Under some circumstances you can change the "capabilities" of an reference.
@Keagan Silas Thank you, I signed up and it seems like they got a lot of movies there :D Appreciate it !!
@Gerardo Ephraim happy to help :D
@Gerardo Ephraim Happy to help :)