Reputation: 2611
I am currently learning the concept of continuations. I am struggling with understanding why direct control flow manipulation by e.g. goto command is a bad practice, but doing so using call/cc is just fine. Isn't it the same thing, but achieved by different means?
Why using goto is regarded as a bad practice, but using call/cc is not?
Upvotes: 1
Views: 175