4 ms·
Java: ArrayList Zig: ArrayList GLib: GArray Objective-C: NSMutableArray
by yakubin 4y ago
Java: ArrayList
Zig: ArrayList
GLib: GArray
Objective-C: NSMutableArray
- domenukk 4y agoFWIW, ArrayList is a List, backed by Arrays. So List would have been the more Java/Zig way to name it (also Python, etc.)
- yakubin 4y ago> FWIW, ArrayList is a List, backed by Arrays. You probably know that, but just to clarify: it's backed by a single array, reallocated repeatedly, just like std::vector in C++ (although growth factors are different, I think). Just "List" probably risks that some people will jump to the conclusion that it's a linked list. I'd probably prefer the full "ArrayList". Although personally I'd use something like "DynArray"/"DynamicArray".
- cnity 4y agoThese are examples in favor of my point, not against it.