Re:ProtoThreads: Lightweight, Stackless Threads in C
by hnbroseph on Monday September 23, 2019 @01:18AM
(#21046110)
aren't most control structures just sugar for goto?
[ Parent
| on HN ]
Re:ProtoThreads: Lightweight, Stackless Threads in C
by Ericson2314 on Monday September 23, 2019 @03:07PM
(#21052388)
Honestly I'm not sure how to define "control" when dealing with languages in the abstract and not just compilation to conventional machine code.
Many control operators involve continuations with closures, and cannot be desugared to goto as such.