|
|
|
|
|
by nu11ptr
1099 days ago
|
|
It is interesting to see them add things like the "clear" function for maps and slices after suggesting to simply loop and delete each key one at a time for so long. Is this a result of the generics work that makes implementation easier vs. the extra work of making a new "magic" function (like "make", etc.)? |
|
Doubly-so when `clear` on a map actually seems to follow the convention of removing all contained elements.