This project has moved. For the latest updates, please go here.

Either<TLeft,TRight>

Coordinator
May 4, 2011 at 6:51 AM

Could LeftValue<TLeft, TRight> & RightValue<TLeft, TRight> be private?

Static factory could work.

Create<TLeft,TRight>(TLeft leftValue)
Create<TLeft,TRight>(TRight rightValue)

Sorry if you've considered all this already :(

Coordinator
May 4, 2011 at 7:25 AM

I haven't thought if this yet, but I like it.  There's no need to expose these types if we're hiding this stuff in IPairedObservable anyway.  And if somebody wants to use Either<L, R> for another purpose, then the factory methods would probably be easier to consume.

Let's roll this into the next release.

Coordinator
May 4, 2011 at 7:27 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.