# 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:** 5

<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 9, 2017, 8:43am UTC](https://discuss.kotlinlang.org/t/best-practices-for-top-level-declarations/2198/5 "2017-01-09T08:43:35Z")

</div>

The idiomatic Kotlin way to express that would be `import kotlin.math.saturated.pow`. Since the Kotlin package structure doesn’t have to match directory structure, there is no issue with creating packages containing a single file - you don’t need to put each of these files into a separate directory.

---

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