marcinmoskala
07/20/2021, 6:03 AMTyler Hodgkins
07/20/2021, 4:00 PMpepos
07/20/2021, 6:17 PMHanno
07/20/2021, 9:15 PMmarcinmoskala
07/21/2021, 7:45 AMlet
, isn't it more explicit, like .map { process(it) }
instead of .processElemens()
?
Don't you find it confusing, when extensions are inside classes, and you don't know if they are extending functionality, of if they are just another method?
Just to make it clear, it is not originally my suggestion. I first heard it on the first influential presentation about the topic - Idiomatic Kotlin:
Then repeated by many others, for instance here on KotlinConf:
Although just because this argument is repeated, doesn't make it true. I understand, that if this pattern is used many times, people might get used to it so much, that their understanding changed, they adjusted practices to it, and it might be perfectly fine.
I would be happy to hear what other thinks about it?Hanno
07/21/2021, 7:20 PMmarcinmoskala
07/22/2021, 12:07 PMHanno
07/22/2021, 10:57 PMNick Allen
07/30/2021, 6:55 PM