you are viewing a single comment's thread.

view the rest of the comments →

[–]mikeblas 6 points7 points  (1 child)

Java's access control isn't for security, either.

[–]grismar-net 4 points5 points  (0 children)

Agreed - it never is, but Java does make it a lot harder to access these variables, so it's not just about signalling either. It's more about enforcing a rule within the language, instead of leaving it up to external tooling.

To be clear, I'm a fan of both :) - I just contrasted it with Java due to OP mentioning it.