3 ms·
> If you need to know, you look at what consumes the result. If it's abstract (say it's a top level binding `... -> m a` where the m is abstract) you don't need
by Izkata 9y ago
> If you need to know, you look at what consumes the result. If it's abstract (say it's a top level binding `... -> m a` where the m is abstract) you don't need to know "what it is actually doing" - it should be correct for any choice of `m`.
That seems to explain a lot. So to make an ad-hoc version of the Elvis Operators section that's actually equivalent to the Haskell code would be more like this?
___ a ___ getData();
___ b ___ a ___ getMoreData();
___ c ___ b ___ getMoreData();
___ d ___ c ___ getEvenMoreData(a);
print(d);