A first goal they serve is as "unassigned variables". I will not cover that here, instead I will focus on another use: abnormal return values.
Brian's Wiki: LambdaVM / LambdaVM - 1 views
jaspervdj - Maybe, null, and boilerplate code - 0 views
-
-
So, null is some sort of "Not found" error here. But wait - they could have used an Exception here!
-
We see a similar behavior here: when the object is found, we get a Just a, and when it is not found, we get Nothing - comparable to a null pointer.
- ...5 more annotations...
1 - 4 of 4
Showing 20▼ items per page