# Kotlin to support package protected visibility

**URL:** <https://discuss.kotlinlang.org/t/kotlin-to-support-package-protected-visibility/1544>\
**Category:** Language Design\
**Created:** [March 18, 2016, 11:05am UTC](https://discuss.kotlinlang.org/t/kotlin-to-support-package-protected-visibility/1544 "2016-03-18T11:05:14Z")\
**Posts on this page:** 1\
**Showing post:** 123

<div class="post-metadata">

**Author:** ![cpdyj](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@cpdyj](https://discuss.kotlinlang.org/u/cpdyj)\
**Post date:** [October 23, 2021, 10:45pm UTC](https://discuss.kotlinlang.org/t/kotlin-to-support-package-protected-visibility/1544/123 "2021-10-23T22:45:07Z")

</div>

Without package level visibility modifier, encapsulation code will be difficult. I agree that the file level private modifier is useful, but we can’t write all code in one file. On the other hands, split code to more and more module is unacceptable because of the build system.(That might be a choice if the build system can be improved. The cycling dependencies also should be considered.)

---

_[View the full topic](https://discuss.kotlinlang.org/t/kotlin-to-support-package-protected-visibility/1544)._
