Y
Hacker News
new
|
ask
|
show
|
jobs
by
Manishearth
3965 days ago
Note that with bounded polymorphism you get clear API boundaries too. With templates you may have to clearly document what kind of type is allowed in.
There's also the danger of something compiling where it shouldn't.