https://kotlinlang.org logo
Title
p

pakoito

09/28/2021, 3:36 PM
first PR in forever, wooo
r

raulraja

09/28/2021, 7:02 PM
Hi @pakoito, happy to have you back! I added a comment in the PR, we used to have something similar but after 0.11 or so we decided to trim all APIs that led to multiple ways of doing the same thing. In this case I think the same applies. It’s a nice api but for the same rationale there are many more variations which could be implemented and it will increase the surface API. I think the implicit rule to add new functions is that they should bring some new functionality or drastically reduce the current boilerplate otherwise we are recommending users they keep it in their codebase as extension.
p

pakoito

09/29/2021, 12:07 AM
I knew it rang a bell. It's fine, we can have it as an extfun in our codebase 😄
👍 1