M. Twarog
M. Twarog

Reputation: 2611

Why using goto is regarded as bad practice, but call/cc isn't?

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

Answers (0)

Related Questions