3 ms·
I see the use for generics all the time. I came from Ruby, where we have enumerable so you get standard constructs like map, find, first, last, each_cons, etc.
by ClayShentrup 7y ago
I see the use for generics all the time. I came from Ruby, where we have enumerable so you get standard constructs like map, find, first, last, each_cons, etc. Because Go lacks them, people constantly reimplement these things with less intention-revealed code using ad hoc for loops. Ugh.
Thus you see very little use of collection pipelining in Go.
https://martinfowler.com/articles/collection-pipeline/ https://martinfowler.com/articles/collection-pipeline/
Generics are such a powerful and useful idea. Bring it on.
- steveklabnik 7y agoYour parent is quite familiar with Ruby. :)