DEV Community

Cover image for that's how we try catch?:value | KnowYourKotlin
Chetan garg
Chetan garg

Posted on • Updated on • Originally published at chetangupta.net

that's how we try catch?:value | KnowYourKotlin

Alt Text

Taking inspiration from getOrNull type function in Kotlin, I ended up creating this extension which has helped me out in multiple cases, Specially dealings with JsonParsing.

Highly recommend the following extended explanation of how this extension work, Do checkout and stay tuned for more content.

👉 AndroidBites|kotlin-try-null

Hope to see you on the other side...

Until next time. Happy Hacking! 👩‍💻

Stalk Me 👀 :
LinkedIn | Medium | Twitter | StackOverflow | CodeWars |WorkX |Github |Instagram |Youtube

Discussion (0)