3 ms·
I didn’t get the impression they were saying never to do it (maybe I missed that bit in the text). I think they specifically said, when piping, don’t force fun
by janderland 5y ago
I didn’t get the impression they were saying never to do it (maybe I missed that bit in the text).
I think they specifically said, when piping, don’t force functions to handle the error of the upstream function.
Because each error needs to be handled differently, the downstream function’s implementation becomes tied to the upstream function. Then the downstream function is only usable with said upstream function.
- devoutsalsa 5y agoThe more I need to handle errors, the more I want to make every unexpected thing just raise an exception. 500s for everyone!
- jkhdigital 5y agoExactly, piping a bunch of ! functions is the way.