News for hackers. Stuff that matters.
Re:Go Replaces Interface{} with 'Any' by skybrian on Tuesday December 14, 2021 @11:42PM (#29562186)
Go has function literals, which are basically lambdas but a bit more verbose. Typical Go style doesn’t use them as often as other languages. You might assign one to a variable, giving you an inner function. But loops are usually written as for loops, not map calls. One API call that comes to mind where you might use one is ast.Inspect. [1]

Go often works well for replacing shell scripts, even without generics.

[1] https://pkg.go.dev/go/ast#Inspect

Re:Go Replaces Interface{} with 'Any' by tgv on Wednesday December 15, 2021 @01:36AM (#29562807)
> Go often works well for replacing shell scripts, even without generics.

That’s selling the language short. Way too short.

Re:Go Replaces Interface{} with 'Any' by skybrian on Wednesday December 15, 2021 @04:48PM (#29572029)
Understatement is easier than making a stronger case for it, and my Go experience is somewhat out of date.