Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust has an Any type. It's rarely useful, but there are occasionally situations where a heterogeneous collection is the right thing to do. Casting the any type back to actual type is fairly nice though, as the operation returns an Option<T> and you're forced to deal with the case where your cast is wrong.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: