Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
matklad
11mo ago
0 comments
Share
I'd flip it over and say that C++ has overloading&SFINAE to enable polymorphism which it otherwise can't express.
0 comments
default
newest
oldest
edflsafoiewq
11mo ago
Such as? The basic property of overloading is it's open. Any closed set of overloads can be converted to a single function which does the same dispatch logic with ifs and type traits (it may not be very readable).
j
/
k
navigate · click thread line to collapse