Re:Making Faster B-Trees with Go Generics
by eweise on Wednesday April 27, 2022 @06:13PM
(#31186485)
its worse. You can't do basic things like make a map method.
[ Parent
| on HN ]
Re:Making Faster B-Trees with Go Generics
by liambowen on Wednesday April 27, 2022 @08:52PM
(#31187644)
Why can't you? https://github.com/samber/lo/blob/master/slice.go#L20
Re:Making Faster B-Trees with Go Generics
by eweise on Wednesday April 27, 2022 @11:50PM
(#31188532)
you can do it that way but you can't add the map method to a struct like persons.map() which would allow you to chain methods. But I guess with the multiple return value convention, you can't chain anyway very nicely.