3 ms·
I concur with all of these and I will admit to on more than one occasion implementing a `Maybe<...>` type. No matter how many silly blogs I see screaming "exce
by cjhanks 9y ago
I concur with all of these and I will admit to on more than one occasion implementing a `Maybe<...>` type. No matter how many silly blogs I see screaming "exceptions are evil", I have never understood the logic. Some times you're several methods deep in a recursion of abstract types and `throw GetMeTheHellOutOfHere` is really as great as it gets.
Also - injecting a whole bunch of branch statements in what is otherwise a vectorizable function is almost never a good thing. This is effectively what your `.map` function is doing.