# Best practices for top-level declarations

**URL:** https://discuss.kotlinlang.org/t/best-practices-for-top-level-declarations/2198
**Category:** Support
**Created:** [January 3, 2017, 9:07am UTC](https://discuss.kotlinlang.org/t/best-practices-for-top-level-declarations/2198 "2017-01-03T09:07:10Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)
#### Post date: [January 5, 2017, 3:00pm UTC](https://discuss.kotlinlang.org/t/best-practices-for-top-level-declarations/2198/3 "2017-01-05T15:00:53Z")

</div>

The recommended practice is to never use `object` for creating namespaces, and to always use top-level declarations when possible. We haven’t found name conflicts to be an issue, and if you do get a conflict, you can resolve it using an import with alias.

---

_[View the full topic](https://discuss.kotlinlang.org/t/best-practices-for-top-level-declarations/2198)._
