News for hackers. Stuff that matters.
Re:Russ Cox is stepping down as the Go tech lead by jdnendjjd on Friday August 02, 2024 @06:03AM (#41137484)
This argument is brought up again and again, but it is just wrong.

Go had both generics and iterators from the get go. Just not user defined ones.

Thus it is obvious that the creators of the language always saw their need for a simple and productive language

Re:Russ Cox is stepping down as the Go tech lead by joeblubaugh on Friday August 02, 2024 @10:55AM (#41139284)
I do agree with his point that the implicit mutation of the loop body for an iterative will be difficult to debug.
Re:Russ Cox is stepping down as the Go tech lead by eweise on Friday August 02, 2024 @10:58AM (#41139318)
Not obvious to me. We just implemented a streaming solution using the iterator interfaces. They are just functions so reading the code its easy to understand. Adding special language support only serves to obfuscate the actual code.
Re:Russ Cox is stepping down as the Go tech lead by valyala on Saturday August 03, 2024 @06:52AM (#41145837)
Go provides generic types since v1.0 - maps, slices and channels. Go also provides generic functions and operators for working with these types - append, copy, clear, delete. This allows writing clear and efficient code.

There is close to zero practical need in user-defined generic types and generic functions. Go 1.18 opened Pandora box of unnecessary complexity of Go specification and Go type system because of generics. Users started writing overcomplicated generic code instead of writing simple code solving the given concrete task.

Re:Russ Cox is stepping down as the Go tech lead by sterlind on Monday August 05, 2024 @02:29PM (#41163960)
tell me, how often do you find yourself writing `interface{}`?
Re:Russ Cox is stepping down as the Go tech lead by valyala on Monday August 19, 2024 @01:22PM (#41292853)
Very rarely