Say Goodbye to Null-Checking and Exceptions: Using the Maybe Monad in Symfonyby@akankov

Say Goodbye to Null-Checking and Exceptions: Using the Maybe Monad in Symfony

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

The Maybe monad is a monad that encapsulates an optional value. A value of type `Maybe a` contains either a value oftype `a` (represented as `Just a`) or nothing at all (representing as `Nothing`) Using the Maybe Monad, we can avoid null values and exceptions.
featured image - Say Goodbye to Null-Checking and Exceptions: Using the Maybe Monad in Symfony
Aleksei Kankov HackerNoon profile picture

@akankov

Aleksei Kankov


Receive Stories from @akankov

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa