Better HN
topnewbestaskshowjobs
Log inSign up

cisters

6 karma · joined Nov 22, 2024 (2y ago) · 1 submissions

Submissions

comment 2y ago · link · parent

In a language with ad-hoc polymorphism like C++, mixins seems entirely unnecessary.

You can just declare by convention that a freestanding clone(T x) -> T function should exist for it to be 'cloneable'.