Hacker News new | ask | show | jobs
by ClayShentrup 2516 days 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/

Generics are such a powerful and useful idea. Bring it on.

1 comments

Your parent is quite familiar with Ruby. :)