I’d like to do a video on each scope function individually to give the general use cases for each one. Generally speaking though you can use them interchangeably to your liking. Using let gives you the ability to reference the outer this reference while run and with doesn’t. Using also is great for side effects and apply works well as a substitute for a builder.
that's really an amazing video on scope functions.m beginner here. and learning kotlin. keep uploading such kind of videos. thanks alot.Cody
Thank you so much Ravin, happy you enjoyed this video 😁
good video on scope function.... but not able clear the point when should i use which scope functions
I’d like to do a video on each scope function individually to give the general use cases for each one.
Generally speaking though you can use them interchangeably to your liking. Using let gives you the ability to reference the outer this reference while run and with doesn’t. Using also is great for side effects and apply works well as a substitute for a builder.
I generally like your videos but this one was not clear . Tell clearly what their purposes are
Thanks for the feedback, I’m hoping to do videos for each scope functions and give better examples of how they can be used.
Also refer this link:
kotlinscopefunction.blogspot.com/2020/03/kotlin-scoping-functions-apply-with-let.html