News for hackers. Stuff that matters.
Re:Go 2 Draft Designs by bschwindHN on Wednesday August 29, 2018 @03:52AM (#17866494)
I guess I've never run into issues where a map or filter slowed me down for debugging, most languages will pretty easily show you where the error occurred. And if you're `map`ping and `filter`ing with pure functions, debugging is pretty simple because you just need the input that went into the buggy function. A good compiler will also optimize the closures into something you'd write by hand in Go. Overall I'm glad to see Go get these nice tools for more easily working with collections.
Re:Go 2 Draft Designs by ori_b on Wednesday August 29, 2018 @04:36AM (#17866702)
I've just never run into places where that style improved readability, performance, or debuggability. Outside of the Haskell world, I've usually found myself preferring loops for ease of following the code.