Skip to content

Comment on Access Control in Swiftparent

Comments

It seems, though, that java's default modifier was maybe ill-chosen, as private and public modifiers seem far more prevalent than no modifier

My impression is that people often simply don't know exactly what the default modifier does, whereas they're more confident in the behaviour of public and private.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.