paint-brush
Say Goodbye to Null-Checking and Exceptions: Using the Maybe Monad in Symfonyby@akankov
2,390 reads
2,390 reads

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

by Aleksei Kankov5mMarch 27th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Aleksei Kankov

Aleksei Kankov

@akankov

Convert coffee into code )

About @akankov
LEARN MORE ABOUT @AKANKOV'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Aleksei Kankov HackerNoon profile picture
Aleksei Kankov@akankov
Convert coffee into code )

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite