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

The compiler deduces that even though the statement `node = next` is inside an `if`, it is more general, so it removes both `node++` and the `if`.


Oh?! So it will aim to generalise even when the semantics aren't 1:1? Mind blown.

Thanks for that.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: