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
20082026
-
…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…
comment by Mawr · 2022-04-30 · in Lies we tell ourselves to keep using Golang -
…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 -
…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 -
…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 -
https://github.com/robpike/filter
comment by yahyaheee · 2019-12-22 · in The Road to Scala 3 -
Rob Pike would rather use a for loop than map or filter.. so yeah don’t dream too big https://github.com/robpike/filter
comment by thatswrong0 · 2019-07-17 · in Declined Proposal: A built-in Go error check function, “try” -
…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? -
…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 -
…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 -
…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 -
…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 -
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 -
…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 -
…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 -
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