4 ms·
Another approach using code generation is gen: http://clipperhouse.github.io/gen/ http://clipperhouse.github.io/gen/ (Disclaimer, I work with the guy behind it
by kmontrose 13y ago
Another approach using code generation is gen:
http://clipperhouse.github.io/gen/ http://clipperhouse.github.io/gen/
(Disclaimer, I work with the guy behind it)
Personally these sorts of libraries just strengthen my opinion that golang really needs proper generics. However, if you're already gonna use Go they're pretty neat.
- aabalkan 13y agoYes I know that. I have been in touch with Matt several times about this. I really look for ways to improve it, even if it is one small step at a time. Just posted a thread to golang-nuts about this: https://groups.google.com/forum/#!topic/golang-nuts/nLwWkoS7Bh8 https://groups.google.com/forum/#!topic/golang-nuts/nLwWkoS7... noting Go really needs generics and maybe even lambdas some day. Just leaving this project here. Hopefully, I will maintain it as bugs etc arises. Who knows, maybe someday Go will have these features and there will be many apps instrumenting Go for their application logic and use it.
- burntsushi 13y ago> Go really needs ... lambdas some day Eh? Go has lambdas: func(x int) int { return x * x }(5)