Skip to content
This repository has been archived by the owner on Oct 16, 2018. It is now read-only.

Standardize positions of closing parentheses #63

Open
sgrimm-sg opened this issue Apr 11, 2018 · 1 comment
Open

Standardize positions of closing parentheses #63

sgrimm-sg opened this issue Apr 11, 2018 · 1 comment

Comments

@sgrimm-sg
Copy link

The style guide is currently silent about which of these is preferred:

someFunction(
    someOtherFunction(
        someThirdFunction(
            param1,
            param2,
            param3)))
someFunction(
    someOtherFunction(
        someThirdFunction(
            param1,
            param2,
            param3
        )
    )
)

The Google Java style guide mandates the first style and it'd be great if the Kotlin style guide was similarly specific. Doesn't matter to me which of the two styles it settles on, just that it picks one for consistency.

@NightlyNexus
Copy link

The JetBrains style guide (https://kotlinlang.org/docs/reference/coding-conventions.html) likes the second. (I've come to like it as well.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants