Functional Programming – 09: Option, Maybe and null value
8.9K views on YouTube
In this video we will look at “Option” type constructor which sometimes it is called “Maybe”. We will look into why using Null values can lead to bugs and how to prevent it by using “Option”.
In this Video:
– What is wrong with Null value
– How to convert a Partial Function to a Total Function
– How to fix the Null value issue
– Defining Option (Maybe), Some (Just) and None (Nothing)
Links:
– https://github.com/gcanti/fp-ts