2 ms·
GetData is `Maybe a` (what means it's not a function). GetMoreData is `a -> Maybe b`. And so on. What means that those variables do not do what their names are
by marcosdumay 9y ago
GetData is `Maybe a` (what means it's not a function).
GetMoreData is `a -> Maybe b`. And so on.
What means that those variables do not do what their names are claiming they do. It's a case of an example that lost its meaning once carried to a too different context. By the way, if you are wondering how functions that actually get data would look, there's a great architecture here:
http://www.parsonsmatt.org/2016/11/18/clean_alternatives_with_maybet.html http://www.parsonsmatt.org/2016/11/18/clean_alternatives_wit...