Re:Such a Little Thing: The Semicolon in Rust
by lihaoyi on Thursday October 18, 2012 @06:04PM
(#4671334)
Wouldn't co/contra-variance solve this entirely? It works just fine in Scala for example
Note how it expects a function that returns Unit, i'm passing in a function that returns an Int (1), but the compiler is perfectly happy.
[ Parent
| on HN ]