Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Typestates in Rust (2018). Parent comment
Type parameter variance is inferred from usage (e.g. covariant for normal fields, contravariant for function arguments) and without a usage there's no way to infer it.
There are no comments on this comment yet.
Type parameter variance is inferred from usage (e.g. covariant for normal fields, contravariant for function arguments) and without a usage there's no way to infer it.