News for hackers. Stuff that matters.
Re:Go 1.20 Released by 12345hn6789 on Wednesday February 01, 2023 @08:49PM (#34620979)
worse program readability is not a true con. Any codebase can have positive or negative code quality, generics do not make this worse.

In fact, it can improve readability and maintainability in some cases instead of having multiple structs copy pasted everywhere.

Re:Go 1.20 Released by philosopher1234 on Wednesday February 01, 2023 @10:00PM (#34621493)
>worse program readability is not a true con. Any codebase can have positive or negative code quality, generics do not make this worse.

While true that generics are not necessarily going to make programs harder to read, it's also not very interesting to talk about theory.

The question which is answerable is, "on average, were go programs easier to read before the introduction of generics". The interesting point is what actually happens, not what could.

Re:Go 1.20 Released by 12345hn6789 on Wednesday February 01, 2023 @10:50PM (#34621803)
You are correct that we must observe this in practice. But, the original poster of this thread purports that generics are making go worse in multiple ways. 1: Slower compile times (without evidence) and 2: have created worse code (without evidence)
Re:Go 1.20 Released by philosopher1234 on Wednesday February 01, 2023 @11:51PM (#34622223)
Sure, they haven't proven their claim. This is all the realm of speculation.