2
What Happens if You Add `null + null` in Kotlin? | Kotlin Tips 2022
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.
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 less35.1K subscribers
Comments
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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK