News for hackers. Stuff that matters.
Re:Understanding contravariance by willtim on Friday June 22, 2018 @03:46PM (#17376787)
> you cannot use subtype polymorphism to have a heterogeneous list of objects

You can by using an existential type parameter, which 'forgets' the types in much the same way as an upcast.

[exists p. {x:int; p}]

There are no comments on this comment yet.