ylemoigne
02/28/2018, 12:08 PMsomeList.map(::Foo)
and someList.map { Foo(it) }
?Czar
02/28/2018, 12:09 PMspand
02/28/2018, 12:16 PM::Foo
form. The latter applies in more cases so it is annoying to convert between the two while writing code.ylemoigne
02/28/2018, 12:19 PMRuckus
02/28/2018, 5:13 PM::foo
) as I feel it gives a better high level explanation of what's going on. You don't need to waste the extra brain cycles considering the specifics of the parameters as well since they don't really tell you anything useful in this case. But to each their own 🙂