# \#encapsulation

**URL:** https://discourse.julialang.org/tag/encapsulation/1719.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Why doesn’t Julia offer built-in privacy/encapsulation features?](https://discourse.julialang.org/t/why-doesn-t-julia-offer-built-in-privacy-encapsulation-features/124666)

<div class="topic-metadata">

**Author:** [@younes](https://discourse.julialang.org/u/younes)\
**Replies:** 12\
**Last updated:** [January 13, 2025, 3:15pm UTC](https://discourse.julialang.org/t/why-doesn-t-julia-offer-built-in-privacy-encapsulation-features/124666 "2025-01-13T15:15:00Z")

</div>

I would like to understand Julia’s rationale for not including a language-level privacy feature: a way to truly protect the internal state from outside access. I’m aware that we can use closures to emulate encapsulation…
