HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by cgag | Hacker News Reader
Parent
Full thread
cgag
·
the cost of power is chronically underestimated
View on HN
whateveracct
·
Exactly - parametric polymorphism doesn't give you power. It in fact only ever makes your types more constrained!
In a theoretical Go:
func id<A>(a A) A
This only has one terminating, non-panicking valid implementation.
Reply on news.ycombinator.com