<https://twitter.com/kotlin/status/117723388006080...
# announcements
u
https://twitter.com/kotlin/status/1177233880060809216 Consider providing a paired function returning 'null' together with one throwing an exception. Similar to 'toIntOrNull' accompanying 'toInt'. https://t.co/kcTTUxdQle #KotlinTips https://t.co/LkAmgR3PA9 Twitter
👍 4
😂 9
b
Could someone explain this?
m
they reposted a corrected version of this: https://kotlinlang.slack.com/archives/C0922A726/p1569497409321300 where the
toIntOrNull()
example was wrong
k
s2 = "Nobody is perfect"
nice!
👍 3
😆 1