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

The best way to implement a linked list is with unsafe in a collection type. You write that type once, check that it’s bullet proof, and then go onto the next thing. I’ve got a sorted map using doubly linked list and I don’t think twice about it. Using an array for a linked list means the compiler can’t tell if you are being unsafe. You still have all the same problems.


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

Search: