4 ms·
CPS is used as an intermediate representation. I have never seen anyone programming in CPS. You program in any style you want, the code is converted to CPS, t
by nabla9 6y ago
CPS is used as an intermediate representation. I have never seen anyone programming in CPS.
You program in any style you want, the code is converted to CPS, then compiler works on CPS.
- Joker_vD 6y ago> I have never seen anyone programming in CPS. Perhaps you've heard of "Javascript callback hell", or maybe even witnessed it first-eye? That's essentially CPS, written manually--one of the driving forces for inventing async/await was to return back to writing the programs in direct style and letting the compiler do the CPS transformation at specified points.
- deleted 6y ago[deleted]