Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Coroutines in C (greenend.org.uk)
28 points by ColinWright on May 24, 2020 | hide | past | favorite | 1 comment


The rewriting here is called “program inversion” in Jackson structured programming:

https://en.m.wikipedia.org/wiki/Jackson_structured_programmi...

The wiki article just hints about using coroutines under certain circumstances; so called “structure clash”. The program inversion technique is fully described in Jackson’s book Principles of Program Design, 1975.




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

Search: