Skip to content

Comment on Underscore.go

Comments

Neat. I like that you can add your own type specific functions.

I was interested in seeing the implementation of the Parallel Map, but on a quick browser through the source, could not find it.

If you're interested in other works in the same space, I think think the the Gen library (http://clipperhouse.github.io/gen/) goes a long way towards providing type-safe, idiomatic, Go code to achieve the same effects.

It doesn't appear that it is complete when compared to the listed functionality on the site.

Yes, but gen is more general for type-driven code generation. It’s implemented as pluggable ‘typewriters’, which anyone can create: https://github.com/clipperhouse/gen/blob/master/CHANGELOG.md

The default ‘genwriter’ package does LINQ/underscore stuff. If someone wanted to go further with it, they could create a new package (or extend that one).

Yeah. WIP that wasn't quite news-ready. :D

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.