worried-city-86458
09/15/2020, 3:35 AMtall-librarian-49374
09/15/2020, 5:39 AMworried-city-86458
09/15/2020, 5:45 AMtall-librarian-49374
09/15/2020, 5:59 AMT
type directly, not Input<T>
worried-city-86458
09/15/2020, 6:02 AMInput<T>
is relying on implicit type conversion. The thing is you only ever instantiate T
directly, otherwise you're passing an Output<T>
from upstream.Input<T>
can't derive from T
, so it would have to compose / wrap T
instead, effectively lifting the properties of T
. That would require either dynamic dispatch or code generation.tall-librarian-49374
09/15/2020, 6:26 AMworried-city-86458
09/15/2020, 6:26 AMapply
etc go away.tall-librarian-49374
09/15/2020, 6:29 AM