regardless if too long for margin or not
# getting-started
o
regardless if too long for margin or not
k
Can you give an example of what you're talking about?
o
ah sorry
always
Copy code
method (
    arg arg...
       )
k
Those aren't method declaration arguments simple smile . This isn't the default style, there are counterexaples all over the style guide, but of course you're free to do so if it makes the code more readable.
o
no I’d like the standard only
I meant the style of how they’re cut-down, not the actual content of the picture
k
What do you mean?
o
meaning that I wanted to show the shape of the code being cut down one line after the other, whether its in method declaration arguments or method params
i read somewhere long ago that everything should be new line after the
(
and then the params come after that, line after line
in code it looks horrendous though
i think i will look into this and see what others are doing https://github.com/raywenderlich/kotlin-style-guide
what do you use?
k
The screenshot you posted there is according to the standard and it looks nice to me.
o
try it when calling a method
object.call( param1, param2, )
it goes vertically for no reason, and yet you still want the readability of that
I guess writing functions that don’t take many params is better than complaining how they’re not wrapped 😛
k
That's how I do it for my calls too.
o
I just dropped to indent 2 😄