1. If the first parameter is like in 2. Also last ...
# codingconventions
r
1. If the first parameter is like in 2. Also last parameter closes with
)
is what I find more readable
b
I wouldn’t do that with a code block, so I personally like it to be closed separately like in 2
Copy code
if (foo) {
    doSomething()
    doSomethingElse() }
else {
    doSomethingElseElse() }
r
@bdawg.io I ment in the context of arguments in the constructor
A(...)
having the last
)
next to the last parameter but agree with you in code blocks
b
I'm talking about the parentheses too. I'm not sure why you would treat different code signals that mean similar things completely different PT 1: https://kotlinlang.slack.com/archives/C4GKV43N2/p1509047598000441?thread_ts=1508918886.000116&cid=C4GKV43N2