|
|
|
|
|
by stiff
4536 days ago
|
|
I really hope this will get solved in the language itself, I like Go quite a bit, but there are quite ugly places, all related to generics I guess: - No min/max for integers (and Go doesn't have the ternary operator) - No IsMember for checking if an object is in a collection - Directly from the Gen page: Go’s sort package requires the fulfillment of three interface members, two of which are usually boilerplate. If you want to sort by different criteria, you need to implement multiple ‘alias’ types. Also, unrelated to generics, but no multidimensional arrays. |
|
That's not true, e.g. [4][4]byte is a multi-dimensional array. It's a contiguous block of 16 bytes of memory.