2

What Happens if You Add `null + null` in Kotlin? | Kotlin Tips 2022

 1 year ago
source link: https://www.youtube.com/watch?v=wwplVknTza4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
#KotlinTips #null #kotlin

What Happens if You Add `null + null` in Kotlin? | Kotlin Tips 2022

2,108 views Jun 7, 2022 Null-safety is number one in Kotlin – but what happens when you add null + null, and why does it return a string? In this episode of Kotlin Tips Seb (https://twitter.com…...more
...moreShow less

35.1K subscribers

Comments
AKedOLSMlizO6LTExwqMSIpuew9gYjsJjt1O2D6kzqzBDc5pB-fjDnPOKx-Wi9lT5tUs=s48-c-k-c0x00ffffff-no-rj
A compiler warning in case of 2 null literals being added would be nice. Like you shouldn't do it anyways and it can lead to spooky action.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK