Hi Christopher,

there is nothing wrong with ifs as such except the won't actually exit a long piece of code, the computation will continue, just in a useless way.

Primarily for every "if" I need two forks, so at every "if" the branches double.

I have written the previous code with ifs and it's quite spaghetti-ish and I hope that using callCC here helps to avoid it.

Of course there is no guarantee that it actually will. ;)

Günther
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to