17 Jun 2012 12:58
Re: fixing Either
Rob Dickens <robcdickens <at> gmail.com>
2012-06-17 10:58:04 GMT
2012-06-17 10:58:04 GMT
> As Paul suggested, that problem is fixed in Scala 2.10. Sorry, still digesting that! >> Regarding unbiased vs biased, if anyone could come up with an example >> which required both returnsEither.rp AND returnsEither.lp, I'd be much >> obliged. Otherwise, I'll assume that the use cases are so rare that we >> might as well go biased. > > I don't understand the question. I agree with your suggestion to add new > projections and deprecate the existing ones. I also suggest to add right > biased methods directly to Either. I'd been thinking (all along) that we should do one thing _or_ the other. So you're suggesting we do both, eh? Okay, well why not?! We'd get the convenience of not having to append .rp (or .lp) and .e all over the place in the vast majority of use-cases, while still having them around for the rarer ones. On Sun, Jun 17, 2012 at 11:23 AM, Jason Zaugg <jzaugg <at> gmail.com> wrote: > On Sun, Jun 17, 2012 at 11:39 AM, Rob Dickens <robcdickens <at> gmail.com> wrote: >> Well, I for one am convinced that Either shouldn't have a filter (or >> withFilter). However, we still need to sort out the pattern-matching >> business (which got raised along the way). > > As Paul suggested, that problem is fixed in Scala 2.10. >(Continue reading)
RSS Feed