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

The derive macro is also key here. Have you ever looked at the machinery needed for Java's URI type to have a halfway useful hashCode implementation? It's pretty elaborate, there's just no way the average programmer will do that work correctly for their own types even ignoring the desire to allow different hash functions. Rust programmers are almost always able to just write #[derive(Hash)] and not worry about it.


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

Search: