Yes, there's no real enforcement of privacy. This is similar to other
popular dynamic languages like Python and Ruby.

On Sat, Dec 6, 2014 at 8:02 PM, Petr Krysl <[email protected]> wrote:

> I see, I missed the bit about the non-exported function p.
>
> But that kind of worries me (am I the only one?).   If I can get at
> anything within a module, nothing is ever protected?   I cannot have a
> private function, shared only by the functions within the module?
>
> In the same vein: there are no private fields within types.
>
> So I guess the Julia way of doing things is TRUST.   There is no
> encapsulation apparently.
>
>  Am I wrong?
>
> Petr
>
>>
>>>>>

Reply via email to