Effect CommunityEC
Effect Community3y ago
94 replies
Kristian Notari

Using Option instead of Undefined or Null in Codebase

Are you all able to use Option as opposed to undefined or null ? Like, when you enter the effect world in your codebase, do you find any undefined or null going around or are them all Options? Is that a goal I shoul pursue?

I find myself always relying on undefined/null and then internally I rarely use Option in some async effect which may or not return something. But when dealing with nested properties, they always are undefined or null in my codebase.
Was this page helpful?