Hacker News new | ask | show | jobs
by cbkeller 2510 days ago
Ah, didn't realize slicing always made copies. A view/alias/whatever would have been fine for the example, but having multiple variable names referring to the same memory has caused me enough problems to try to avoid it by default.