Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cisters
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
cisters
2y ago
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'.