|
|
|
|
|
by morelisp
1326 days ago
|
|
The solution here is not really interesting except from a language design perspective. Go avoids this problem by having the maximum array length be int, but doing the math in uint. This won’t work in languages that lack uints (Java) or have maximum array sizes in uint (C/C++). |
|
It doesn't help that almost nobody knows this, though.