News for hackers. Stuff that matters.
Re:Lodash just declared issue bankruptcy and closed every is... by yakshaving_jgt on Sunday September 17, 2023 @02:50AM (#37542206)
I’m confused. Do you not think that would have been a good opportunity to teach that person what folds are for?

Fold/reduce is fundamental. It’s weird to me that its use would be discouraged or outlawed somewhere.

Re:Lodash just declared issue bankruptcy and closed every is... by jrockway on Sunday September 17, 2023 @03:15AM (#37542358)
If your language has a `for` keyword, I would just say use the `for` keyword.
Re:Lodash just declared issue bankruptcy and closed every is... by yakshaving_jgt on Sunday September 17, 2023 @03:23AM (#37542403)
But why?

The language I use has various flavours of `for`. It also has various flavours of map and fold. It also has recursion.

They each do different things. Those differences are meaningful and useful. Why would you limit yourself to just using `for`?

Re:Lodash just declared issue bankruptcy and closed every is... by izietto on Sunday September 17, 2023 @03:46AM (#37542531)
It depends. It isn't the case for Ruby, for example.