Composing an API with Kotlin
Kotlin offers many powerful language features to API authors. We’ll explore how Jetpack Compose’s syntax builds on these features, and how its APIs were shaped by Kotlin idioms and conventions. These ideas and best practices give you a deeper understanding of the language, and they are valuable for any Kotlin developer designing APIs – which is actually every Kotlin developer!
Resources:
- Compose API guidelines
- Kotlin for Jetpack Compose (developer.android.com)
- Understanding Compose by Leland Richardson (ADS ‘19)
- Extension oriented design by Roman Elizarov
- Suspending over Views by Chris Banes