@iliana Yeah, this is fun! I did this for a couple futures-rs stream combinators I wrote. Type-wise, I think this makes a "bigger"* type than Read, which is the opposite of what extension-through-inheritance does.°
* mathematicians please don't argue cardinality with me thanks ° I think. I seem to remember reading something where there are unintuitive results when thinking about inheritance but I think that's with functions between types.
@iliana Yeah, this is fun! I did this for a couple futures-rs stream combinators I wrote. Type-wise, I think this makes a "bigger"* type than Read, which is the opposite of what extension-through-inheritance does.°
* mathematicians please don't argue cardinality with me thanks
° I think. I seem to remember reading something where there are unintuitive results when thinking about inheritance but I think that's with functions between types.