ponylang / pony-tutorial

:horse: Tutorial for the Pony programming language
http://tutorial.ponylang.io
BSD 2-Clause "Simplified" License
310 stars 111 forks source link

Actor section lacking usage example and important properties #469

Open schnittchen opened 3 years ago

schnittchen commented 3 years ago

Currently there is no code example of creating and using an actor.

I'm currently reading through one of the pony papers, and, "All actors in Pony are visible to other actors with capability tag but see themselves as ref." is not reflected in the section.

ergl commented 3 years ago

For the "see themselves as ref", we could probably reuse the material for the "Accessing an Actor with Arbitrary Transactions", although that requires talking about capabilities, which are not introduced until later in the tutorial.

jemc commented 3 years ago

I agree that linking to that Pony Pattern would be helpful for a deep dive into this concept, which we can cover more briefly and succinctly in the tutorial.