Re:a[low:high:max] in Golang – A Rare Slice Trick
by hdhrufjdi on Sunday March 19, 2023 @07:10AM
(#35217848)
I had to add a code generator, because of the lack of generics
[ Parent
| on HN ]
Re:a[low:high:max] in Golang – A Rare Slice Trick
by throwaway894345 on Sunday March 19, 2023 @06:53PM
(#35224585)
Yeah, like I said, there are some cases where generics are genuinely helpful. It’s just a small percentage of the code I tend to write (generics have been out for quite a while, and I still avoid them in Go despite my familiarity with languages like Rust, TypeScript, etc that use them extensively).