If you can get the job done using Java, there is r...
# android
e
If you can get the job done using Java, there is really no reason to force a switch. We switched because the features really helps us as a developer to save time and effort
n
Which all features helped you , can you please mention, so that I can apply same while coding
e
sealed class for example helps you to ensure you've covered all cases when using a switch statement
n
I need to look into it
?
how about coroutines
?
e
by lazy{...}
for the lazy initialisation that is quite hard to do in Java
Personally I haven't use coroutines, but I see some people switching from Rx to coroutine
There is many more feature that helps developer to ease their life, take a look on their official page and see if those feature can come in handy for you.
n
thanks Edward for your suggestion and time. This will help me