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

Perfect. I almost commented to complain that the “elegant” version is harder to read and understand. This is much much better. Comments are important!


I don't think it's the comment.

Usually variable names in a loop is the object being manipulated not the address of that pointer which means p isn't a pointer to the object which makes it completely confusing.

If the article used pp which is the typical way you describe a pointer to pointer it'd help




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: