Hacker News new | ask | show | jobs
by pdimitar 3160 days ago
I'll take the liberty to speculate and assume your parent comment was asking if Pony classes have the same features as Java classes -- namely class-level attributes, instance-level attributes, different access levels to attributes and methods. Those things.

So, does it?

1 comments

Pony classes have methods. Pony classes have fields.

Fields and methods can be public or private. Private is akin to Java's package private.

There are no instance variables.

Thank you. And structs / records? I mean, if there are no instance fields, there has to be some kind of constructs that emulate them.
Sorry, I mispoke. There are no class fields. Only instance fields.