
14 Jul
2011
14 Jul
'11
4:03 a.m.
On 23:18 Wed 13 Jul , Martin Drautzburg wrote:
Right. It did.
It sometimes doens't work to define the callback *after* the function which needs the callback. It is not always easy to find out *when* things need to be defined in javascript. Luckily in Haskell there is no "when".
Still in most cases it works and the code looks like regular procedural code, where control flows from top to bottom. And I could nicely write code where the callback makes another callback etc.
Thanks.
Could you give an example how CPS helped your situation? I'm trying to grok continuation passing style, but for now it just seems to complicate and/or slow down code (stack) -- Mats Rauhala MasseR