why !! operator exists? Why is it needed? Is there...
# getting-started
d
why !! operator exists? Why is it needed? Is there some really good reason?
r
Generally it’s a bit of a code smell, but it’s a quick-and-dirty way to tell the compiler that you know better than it, and that you’re willing to crash if you’re wrong.
r
So you can do
null!!
On a more serious note, it can be quite useful for Java interop.
d
Thank you guys!