Search posts, tags, users, and pages
A look at the inbuilt null-safety feature in Kotlin, and ways we can improve the ergonomics of working with nullable values
Ikechukwu Eze
@Ikezedev · Oslo, Norway
Software Engineer @Cognite
Markdown supported · ⌘↵ to post
Ryan Hintze
Enjoyed the article! What do you think of using contracts for nullable values instead of using the result of bind? I can only think that this might cause some issues if a background thread or value read changes the value. I implemented a PoC here:
bind
https:// github .com/spyderrsh/extending-kotlin-null-safetly/commit/40fc29336725f2e4c7fdd353c062973405a356a6
(Sorry, new user, so I had to add spaces in my link)
Ryan Hintze
Enjoyed the article! What do you think of using contracts for nullable values instead of using the result of
bind? I can only think that this might cause some issues if a background thread or value read changes the value. I implemented a PoC here:https:// github .com/spyderrsh/extending-kotlin-null-safetly/commit/40fc29336725f2e4c7fdd353c062973405a356a6
(Sorry, new user, so I had to add spaces in my link)