Skip to content

Comment on Show HN: Ferrum.js – Rust features in JS: traits and advanced iteration

Comments

nice README. I am a bit surprised that there is no reference to Ramda ( https://ramdajs.com/ )?

Thanks for the tip!

Technically still on vocation so I added a ticket to update the Readme :)

I've taken a look at Ramda! It does look very nice; I think the goals of Ferrum and Rambda are a bit different: Rambda seems to aim at being a kind of FP standard library for JS so in that regard it is more comprehensive than Ferrum.

Ferrum on the other hand is primarily designed to introduce some new features for iteration libraries in JS: Reverse Currying, Objects as Sequences and Lazyness are not provided by Rambda. Both Rambda and Ferrum feature a `pipe()` function.

Also Ferrum provides a Traits and a standard library of traits like Eq, Rambda does not I think :)

So I would prefer using Ferrum/Sequence over the list transformation functions from rambda because of the above mentioned features, but that shouldn't stop anyone from using the rest of Rambda (or even underscore or lodash); you should be able to mix and match functions from rambda and ferrum without any issue; even in the pipe functions; so I would say use Ferrum/Trait and Ferrum/Sequence and keep using Rambda for the rest because it's great; I think I'll add another example for mixing Ferrum and Rambda and Lodash :)

Cool ! Thanks for pointing out those differences ! It helps when deciding on which library is best for the use-case at hand.

AboutSource Built by g1lg1l

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