7 karma · joined Jul 1, 2024 (2y ago) · 2 submissions
comment 2y ago · link · parent
The Default typeclass (or trait) as seen in Haskell and Rust, is a far better design, as this makes the feature opt-in for data types that truly support them.
[1]: https://boringtechnology.club/
[2]: https://www.ardanlabs.com/news/2024/rust-at-google