Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cgag
on March 14, 2019
|
parent
|
context
|
favorite
| on:
The ups and downs of porting 50k lines of C++ to G...
the cost of power is chronically underestimated
whateveracct
on March 14, 2019
[–]
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.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: