I’m interested in Reason and ReasonReact because it is a typed functional language for the frontend.
Today I learned about the Option type.
During my experiments with ReasonReact I’m stumbling over some hurdles. I have no experience with typed languages and it shows.
Sparse documentation and React’s inherent complexity don’t help.
I’m spoiled by bigger communities and more well-known languages, where it’s easy to find material.
Still, it’s interesting to learn new concepts and to try to solve problems.
Option is a new concept for me. I’ve read about it, but I’ve never encountered it in practice:
Reason itself doesn’t have the notion of null or undefined. This is a great thing, as it wipes out an entire category of bugs. No more undefined is not a function, and cannot access foo of undefined!