-
Notifications
You must be signed in to change notification settings - Fork 39
Maybe
Yehonathan Sharvit edited this page Apr 5, 2021
·
2 revisions
Nothing is of type maybe something.
Maybe is a property of the aggregate not of the field.
It makes no sense to say that the type of the social security number of a person is maybe a string.
What makes sense is to say: in this map (that aggregates data about a person), the social security number is maybe a string (it could also be absent from the map).
Even more precise: this function receives as an argument a map where the social security number is maybe a string.