News for hackers. Stuff that matters.
Re:Three Minor Features in Go 1.18 by BurningFrog on Wednesday December 22, 2021 @11:45PM (#29658749)
It's a bit messy in JS.

In Ruby the map/filter/reduce handling is very smooth, readable and useful!

Re:Three Minor Features in Go 1.18 by dragonwriter on Thursday December 23, 2021 @05:57AM (#29660641)
> It's a bit messy in JS.

Mainly, IME, because of the combination of JS map, etc., passing extra, infrequently used parameters, and functions you might want to use often accepting optional less-frequently-used parameters, which can end up interacting horribly wrong when you do:

  arr.map(func)
instead of:

  arr.map(v => func(v))
when you want a “simple” map application.