News for hackers. Stuff that matters.
Re:Three Minor Features in Go 1.18 by ryanar on Wednesday December 22, 2021 @10:49PM (#29658456)
Agreed. Doing Advent of Code in Go and it is so verbose to do simple things like filtering. I agree that for loops can be easier to read, but when it takes 4 LOC to express what a 1 LOC filter function can do and you have 3+ maps or filters you need to do it seems far less readable because it is so noisy. Sure you can understand it, but it is a mess and takes too long to parse for the importance it actually has.
Re:Three Minor Features in Go 1.18 by azth on Thursday December 23, 2021 @11:54AM (#29663655)
This shortcoming of golang really shows when writing non trivial programs.