if "Either" types are typically used for error handling, why isn't there a version with more semantic method names than "left" and "right"?
-
-
That's exactly my point - that it would be nice to have something more purpose-specific. I, for one, get lost with lefts and rights in this specific use case of returning "either result or error".
-
So the problem is, if you write an additional version of Either which is isomorphic, but with non-generic names, then third-party generic code needs to support its interface too, or else you would need to convert your version to the standard generic Either all the time.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.