# Organizing extension functions

**URL:** <https://discuss.kotlinlang.org/t/organizing-extension-functions/18660>\
**Category:** Language Design\
**Created:** [August 2, 2020, 3:08am UTC](https://discuss.kotlinlang.org/t/organizing-extension-functions/18660 "2020-08-02T03:08:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![benwoodworth](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@benwoodworth](https://discuss.kotlinlang.org/u/benwoodworth)\
**Post date:** [August 3, 2020, 5:06am UTC](https://discuss.kotlinlang.org/t/organizing-extension-functions/18660/4 "2020-08-03T05:06:32Z")

</div>

You can create a package (e.g. `your.package`) that contains a bunch of files with only top level functions, and they’ll be importable with `your.package.*`.

> [@Best practices for top-level declarations](https://discuss.kotlinlang.org/t/best-practices-for-top-level-declarations/2198/3):
>
> 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/organizing-extension-functions/18660)._
