3 ms·
> A code base littered with Maybes is certainly a code smell. It's not because Maybe (and usually more practical Either) have functor instances. What this mean
by codygman 12y ago
> A code base littered with Maybes is certainly a code smell.
It's not because Maybe (and usually more practical Either) have functor instances. What this means is you can use fmap to apply pure functions to Maybes, Eithers, or any other type that has a Functor instance.