what is the kotlin way to use `.use` if it is used...
# announcements
d
what is the kotlin way to use
.use
if it is used on the next line? should it be indented or should it be flush with the object on the line above?
d
Next line if the line is too long. Up to developer to define too long.
d
yeah, line is very long, multiple lines actually for this code - but the question is - if it is on the next line should it be
.use {
or
(tab).use {
(indented)? .. it seems to look better non-indented to me
d
Ah I misread.
I think it should be flush.
c
Copy code
someObject
    .use {
        //logic
    }
k
Just look at what Idea autoformats it to?
d
sure I saw that already, but I wasn't sure if it specifically knew it was a .use or just formatting it according to some general rule (more likely)