zlacker
[return to "Go(lang): Robust generic functions on slices"]
◧
1. gslall+Ng3
[view]
[source]
2024-02-24 09:47:08
>>signa1+(OP)
> func Index[S ~[]E, E comparable](s S, v E) int {
After seeing this signature, I think that Go is giving up on it's simpleness principle.
◧◩
2. JyB+Am3
[view]
[source]
2024-02-24 11:18:05
>>gslall+Ng3
They shot themselves in the foot when they forced themselves to add generics based on bogus surveys.
◧◩◪
3. adrian+8K5
[view]
[source]
2024-02-25 11:21:27
>>JyB+Am3
Why were the surveys bogus?
◧◩◪◨
4. ikiris+fMa
[view]
[source]
2024-02-27 02:07:24
>>adrian+8K5
Because they disagreed and thus everyone else is wrong, apparently.
[go to top]