Is there any advantage using Option over nullable?
# arrow
k
Is there any advantage using Option over nullable?
a
in general you should prefer nullable types because of their better integration with the language
Option
wins, though, when "something is `null`" is a potential result and you want to distinguish it from error a longer version of this is available in the API docs https://arrow-kt.io/learn/typed-errors/nullable-and-option/
(any feedback on that page is welcome 🙂 , since this is a topic which is raised from time to time)
t
Its better to raise this topic than exceptions 🙂
homer disappear 1
😂 4
🥁 7