These are chat archives for MetaStack-pl/MetaRx

14th
Oct 2015
Marius B. Kotsbak
@mkotsbak
Oct 14 2015 10:14
Hmm, why is there no implicit conversion from ReadChannel[Option[T]] to ReadPartialChannel[T]?
I got that by Var.map( f => Option[T]) now
Marius B. Kotsbak
@mkotsbak
Oct 14 2015 10:47
Hm, or it has no concrete implementation
Tim Nieradzik
@tindzk
Oct 14 2015 11:15
I don't want to add an implicit conversion for this because a conversion should not be necessary in the first place. If you can think of a way how to make both types equivalent, please let me know. Right now, I partially solved it by using an implicit class, but it's not the best solution either.
Marius B. Kotsbak
@mkotsbak
Oct 14 2015 17:10
Why that type appeared in my code was the implicit Future[T] to ReadChanel[T] with T=Option[U]. Maybe there should also be an implicit Future[Option[T]] to ReadPartialChannel[T]? Or do you have other suggestions?
Tim Nieradzik
@tindzk
Oct 14 2015 19:36
How about making ReadPartialChannel[T] a type alias for ReadChannel[Option[T]]?