2 ms·
My biggest surprises learning Go were that it didn't have generics, and that it didn't have native map/reduce/filter. I think of many programs in terms of these
by stevebmark 5y ago
My biggest surprises learning Go were that it didn't have generics, and that it didn't have native map/reduce/filter. I think of many programs in terms of these three constructs and combining them.
- int_19h 5y agoIt's interesting that some of the comments on this issue are complaining that HOFs are non-Go-like, and that if adopted, they will "take over" for-loops, which would be undesirable.
- skywhopper 5y agoYep, different languages have different idiomatic styles, for lots of reasons. When I’m learning a new language that’s very different, I have found that breaking through these mental roadblocks opens my mind to a lot of new possibilities and considerations. No language can be everything to all people and purposes.