kotlin-guides icon indicating copy to clipboard operation
kotlin-guides copied to clipboard

A set of guides for writing Kotlin for Android.

Results 22 kotlin-guides issues
Sort by recently updated
recently updated
newest added
trafficstars

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.

page/style

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:...

proposal
page/style

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...

proposal
page/style

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,...

page/style

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...

page/style

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...