thowruasdf·vor 2 Jahren·discussThe downside is now all types must dogmatically have a nullary constructor.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.
thowruasdf·vor 2 Jahren·discussThis is a myth pushed by the "Choose Boring Technology" cult [1] and proven false by Google [2].[1]: https://boringtechnology.club/[2]: https://www.ardanlabs.com/news/2024/rust-at-google
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.