Here’s a question for y’all. As a Kotlin AND Java...
# announcements
n
Here’s a question for y’all. As a Kotlin AND Java noob (I’m from JS land, the land of dynamic everything and wheel reinventions every 5 seconds), after looking into what this statement denotes:
something!!.someMethod()
, the double-bang apparently will throw an NPE if the value is null. Why would one ever explicitly want that to happen in the middle of any expression? Or would this normally just be the result of converting from Java to Kotlin through an automated script?