Hacker GitHub

← All repos

robpike/filter

View on GitHub ↗ ★ 865 Go

Simple apply/filter/reduce package.

17 mentions on Hacker News by 15 people: 2 stories, 15 comments · first 2015-01-08 · latest 2022-04-30

Mentions per year 17 mentions · busiest year 2015 (6)
20082026
  1. …Rob Pike would rather just use a for loop than something mildly expressive like map or filter ( https://github.com/robpike/filter ). There are arguments to be made either way, but I definitely agree generics (along with iterators) should…
  2. …Rob Pike would rather just use a for loop than something mildly expressive like map or filter ( https://github.com/robpike/filter ). Every function that does meaningful work is littered with if err != nil { return err }. Etc. It is easy to…
    comment by thatswrong0 · 2022-04-29 · in Lies we tell ourselves to keep using Golang
  3. …had occasion to use it once. Instead, I just use "for" loops. You shouldn't use it either." 0: https://github.com/robpike/filter
    comment by WoodenChair · 2021-12-02 · in Advent of Code 2021
  4. …could support map/filter/reduce in a type safe manner. This is the response we got from Rob Pike https://github.com/robpike/filter For the longest time the answer about generics was "There are no plans for generics. I said we're going to…
    comment by qtplatypus · 2020-02-07 · in Proposals for Go 1.15
  5. https://github.com/robpike/filter
    comment by yahyaheee · 2019-12-22 · in The Road to Scala 3
  6. Rob Pike would rather use a for loop than map or filter.. so yeah don’t dream too big https://github.com/robpike/filter
  7. …doesn't see the value of the functional style, at least that is what I gather from the readme of https://github.com/robpike/filter :P Personally, I would love if the language design was a step closer to I.e. ocaml, especiall if I see the…
    comment by a-saleh · 2019-06-19 · in Ask HN: Why Isn't Go Functional?
  8. …just use a for loop[2]. [1]: https://groups.google.com/forum/#!topic/golang-nuts/RKymTuSC... [2]: https://github.com/robpike/filter
    comment by djur · 2017-07-13 · in Toward Go 2
  9. …position. Of course, YMMV. 0 - https://en.wikipedia.org/wiki/Go_(programming_language) 1 - https://github.com/robpike/filter 2 - https://commandcenter.blogspot.com/2012/06/less-is-exponenti...
    comment by AdieuToLogic · 2016-08-22 · in What Golang Is and Is Not
  10. …language doesn't see the value in abstractions [0], then it's probably never going to happen. [0] https://github.com/robpike/filter
    comment by thatswrong0 · 2016-08-21 · in What Golang Is and Is Not
  11. …had occasion to use it once. Instead, I just use "for" loops. > You shouldn't use it either. [0]: https://github.com/robpike/filter/ [1]: https://github.com/robpike/filter/pull/1
    comment by reycharles · 2016-04-14 · in Proposal: Go should have generics
  12. Here's Pike's implementation: https://github.com/robpike/filter
    comment by Immortalin · 2015-07-27 · in Show HN: Map, Reduce and Filter in Go
  13. …occasion to use it once. Instead, I just use "for" loops. You shouldn't use it either." -- Rob Pike https://github.com/robpike/filter This matches my experience pretty well. When I first created Higher Order Messaging, I was also really…
    comment by mpweiher · 2015-04-14 · in Less is more: language features
  14. …But please read comment to Apply function [0] and tell me you don't see usual generics record. [0] https://github.com/robpike/filter/blob/master/apply.go#L19
    comment by EugeneOZ · 2015-04-03 · in Simple apply/filter/reduce package in Go
  15. This only handles functions of type a -> a -> a ( https://github.com/robpike/filter/blob/master/reduce.go ), whereas a generic reduce takes functions of type a -> a -> b. So this is certainly not proof that you can write generics in go.…
    comment by hyperpape · 2015-04-03 · in Simple apply/filter/reduce package in Go
  16. ▲ 64
    Simple apply/filter/reduce package in Go
    story by fosforsvenne · 2015-04-03 · 64 comments
  17. ▲ 2
    Apply, Filter, Reduce Package by Rob Pike (Golang)
    story by signa11 · 2015-01-08 · 0 comments