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

The first time I saw that thing I just thought "That just can't be valid C syntax". It's quite an amazing hack that seems ugly at first but seems more and more elegant the more you think about it.

These days compilers usually do loop unrolling on their own, so the device has mostly lost its purpose, but it can apparently also be used to implement something similar to coroutines in C, which is nice.



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

Search: