Let’s look at our helloworld code again:
actor Main new create(env: Env) => env.out.print("Hello, world!") Let’s go through that line by line.
Line 1 actor Main This is a type declaration. The keyword actor means we are going to define an actor, which is a bit like a class in Python, Java, C#, C++, etc. Pony has classes too, which we’ll see later.
The difference between an actor and a class is that an actor can have asynchronous methods, called behaviours.