Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The advantage here isn’t that it’s ergonomic, it’s that if I get an “unknown” array I have no special knowledge about, I can simply use list.delete instead of having to write a linear delete and sleep soundly in the knowledge that it’ll have well-known performance characteristics for that case. If I know something special about an array, I’m still free to write my own deletion algorithm, and nobody would fault you for that.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: