Open johnynek opened 10 years ago
Wow, this indeed makes it much simpler, but this will cause backwards incompatible, right?
It would be backwards incompatible for binary, but I am assuming most user code does not reference TailProducer so it could be source compatible.
That said, the gain may be low and not outweigh even a little backwards incompatibility.
If NamedProducer and AlsoProducer kept the full type of the types they wrapped, and we made TailProducer a typeclass (
trait IsTail[P]
) we could avoid having the duplication of AlsoTail and Named tail producer with:then plan becomes: