Re:How Many Lines of C It Takes to Execute a and B in Python?
by tialaramex on Monday December 11, 2023 @11:30AM
(#38602013)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.