i think i like `fun Foo.act(with: Bar) = //` The m...
# codingconventions
h
i think i like
fun Foo.act(with: Bar) = //
The most when paired with
foo.act(with=bar)
g
I would say very depends on case
For example:
Copy code
fun <T> Iterable<T>.sortedWith(comparator: Comparator<in T>): List<T>
With
in function name makes a lot of sense, because in 99% cases you use it like:
Copy code
list.sortedWith { compareSomehow(it) }
h
i totally agree!