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

As I said in another thread, you can get the same functionality as pointers by using arrays or objects, which are always passed around by reference.

You're right that this is an inefficient way to implement those algorithms, but I disagree that that makes it silly. The purpose of writing those algorithms is to learn how they work, not to use them in practice. Generally, if you're using them in practice, you shouldn't be rolling your own in the first place.



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

Search: