Re:The ups and downs of porting 50k lines of C++ to Go (2015)
by cgag on Thursday March 14, 2019 @01:54AM
(#19386812)
the cost of power is chronically underestimated
[ Parent
| on HN ]
Re:The ups and downs of porting 50k lines of C++ to Go (2015)
by whateveracct on Thursday March 14, 2019 @03:04AM
(#19387058)
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.