Comment by steveklabnik
15 hours ago
This is called "pattern types" in Rust land, as your parent mentioned, and is exactly the kind of work being talked about.
NonZero isn't a hack: it's an example of a common pattern. If pattern types were available today, you'd still want NonZero, as an example of a pretty standard pattern.
The idea is, as always: prove out the specific version, then generalize.
No comments yet
Contribute on Hacker News ↗