Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Betadel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
Betadel
9y ago
In addition to what others have already mentions, you can use tagged unions as an alternative of subtype polymorphism., for example with std::variant.