kotlin-guides
kotlin-guides copied to clipboard
A set of guides for writing Kotlin for Android.
Any chance of a table of contents in the Style Guide and the Interop Guide, like the one at the top of the Google Java Style Guide? Thanks - these...
They combine whitespace, wrapping, documentation, and annotations together.
Perhaps as a plugin so that it's constantly updating?
Fixes a conflict with https://kotlinlang.org/docs/reference/coding-conventions.html#property-formatting which currently states: > For properties with an initializer, if the initializer is long, add a line break after the equals sign and indent the...
Addresses and uses the code snippets in #36.
Properties and functions may often have more keywords which order is not strictly ordered in Kotlin but may be confusing. Few examples: `lateinit` on properties: - `private lateinit var foo:...
The style guide doesn't talk about naming enum constants. They don't fall under "Constant values can only be defined inside of an object or as a top-level declaration", so they...
I was wondering if there were currently any thoughts on constructors and guidelines around those, or if these are more of a personal preference / per basis thing? For example,...
The guide sets the following guidelines for single-expression functions: > Expression functions should not wrap to two lines. If an expression function grows to require wrapping, use a normal function...
While the problem of marking result expressions mentionered [here](https://blog.jetbrains.com/kotlin/2015/09/call-for-feedback-java-statics-result-expressions-and-more/) still not solved in kotlin, it is good idea to fix it on the code style level due to avoid fights...