Sitemap
Mar 10, 2021

You're right, it's not full encapsulation like you're used to with Java. But the idea is there still. If you mark something as private, then other parts of your codebase are not allowed to access those.

Of course, without using '#' in a class, it's not the case at runtime, but for anything but libraries, this doesn't matter too much.

Sébastien Dubois
Sébastien Dubois

Written by Sébastien Dubois

Leading the movement to transform mental chaos into clarity, helping knowledge workers break free from information overload. 💌 https://dsebastien.net

No responses yet