Hacker GitHub

← All repos

cheekybits/genny

View on GitHub ↗ ★ 1,716 Go

Elegant generics for Go

10 mentions on Hacker News by 10 people: 0 stories, 10 comments · first 2017-03-24 · latest 2022-03-15

Mentions per year 10 mentions · busiest year 2017 (5)
20082026
  1. …helped with code generation to work around generics. I don't think it was specific to Graphql. https://github.com/cheekybits/genny is one I have seen.
    comment by akmittal · 2022-03-15 · in Go 1.18
  2. …of google: * https://github.com/kulshekhar/fungen * https://github.com/awalterschulze/goderive * https://github.com/cheekybits/genny
  3. …stdlib, not about if it's possible. Is it even possible? Yeah, there are some implementation (e.g. https://github.com/cheekybits/genny ). So Go is not "far behind" C, which also does not have generics (or did I miss something in C11/C17?).
    comment by bierjunge · 2021-01-13 · in A Proposal for Adding Generics to Go
  4. There is this for example https://github.com/cheekybits/genny However, I couldn't justify relying on such tooling for my projects...
  5. …stairway in their building if the elevator broke down. [0] https://github.com/clipperhouse/gen [1] https://github.com/cheekybits/genny [2] https://github.com/cosmos72/gomacro [3] https://appliedgo.net/generics/
    comment by alexkavon · 2019-03-29 · in Go 2018 Survey Results
  6. …either type assertions from interface{} types, code generation through some sort of [preprocessor]( https://github.com/cheekybits/genny ), or copy-pasting code. All of these are more complex than a simple generics implementaton! Golang…
    comment by perturbation · 2017-06-18 · in Go and Simplicity Debt Redux
  7. …I used golang, the less I had a need for generics. Also, there is solutions if you insist, such as https://github.com/cheekybits/genny Indeed, like I said, I haven't used it much so perhaps I would be able to live without generics. It is…
  8. …I used golang, the less I had a need for generics. Also, there is solutions if you insist, such as https://github.com/cheekybits/genny
  9. There are also a couple of code generation tools availbale such as https://github.com/cheekybits/genny and https://github.com/joeshaw/gengen
    comment by eknkc · 2017-05-10 · in Codegen for type safety in Go
  10. …The concepts are fundamentally the same...the effort just happens in different places. [0]: https://github.com/cheekybits/genny
    comment by kornish · 2017-03-24 · in 3.5 Years, 500k Lines of Go