Join Slack
Yeah, any method call on the object can use the `?.` notation for safety
# getting-started
b
brianwernick
02/09/2017, 9:35 PM
Yeah, any method call on the object can use the
?.
notation for safety
v
victortong
02/10/2017, 1:54 AM
brianwernick: !! is just tell the compiler to stop give me warning , things like that right?
b
brianwernick
02/10/2017, 3:58 PM
No,
!!
asks the language to throw an Exception (runtime) if the object you are accessing is null instead of safely ignoring it which
?.
does
v
victortong
02/12/2017, 8:32 AM
That is nice, Thanks
2
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by