News for hackers. Stuff that matters.
Re:Go 1.10 Beta 1 is released by baby on Friday December 08, 2017 @09:44AM (#15878897)
They add complexity which makes understanding and auditing code much harder. Look at OpenSSL and their overuse of macros, or heavily-templated C++ code.
Re:Go 1.10 Beta 1 is released by gopher_protocol on Friday December 08, 2017 @04:43PM (#15882316)
No one is asking for C/C++ style macros, or even C++ templates. Go generics would be closer to Java or C# generics, which increase code clarity, reduce boilerplate and copy/paste code, and communicate intent.
Re:Go 1.10 Beta 1 is released by baby on Sunday December 10, 2017 @12:20PM (#15892343)
I see. If it can be implemented as something that make code easier to read and not worse. Why not. But I’d need to see a clear example of that.
Re:Go 1.10 Beta 1 is released by a-saleh on Friday December 08, 2017 @01:42PM (#15880825)
Fair. In my opinion generics are good alternative to macros or templates, because they are much more constrained.