DEV Community

loading...

Discussion on: Domain modeling obsession

Collapse
eureka84 profile image
Angelo Sciarra Author

I really like Kotlin nullable types because they force you to think about nullability and provides compile time checks against nullability.
I would use them maybe instead of data types like Option, because, as you said they are more idiomatic. I wouldn't go and use them in place of Eithers or Validated because they are currying other kinds of information and not simply the presence/absence of a value.