I plan on writing a few blog posts on "Secret Frie...
# feed
s
I plan on writing a few blog posts on "Secret Friends", which are (hopefully not totally obvious) pairings of 2 Kotlin language constructs that work together to achieve "nice code". Here is my first post: Secret Friends: tailrec and local functions I have one other pairing in mind so far, but if you have suggestions for other secret friends, please mention them in the comments!
👍 4
K 2
s
Nice succinct article, and a really nice idea for a series! The other pairing that jumps to mind for me is
suspend
+
inline
, for higher order functions that can handle both async and non-async contexts
s
@Sam sounds good, but I haven't had so much experience with suspend functions yet, so unfortunately I don't even grasp whtat "for higher order functions that can handle both async and non-async contexts" means 😅