[Haskell-beginners] Monads in javascript

Mats Rauhala mats.rauhala at gmail.com
Thu Jul 14 10:03:23 CEST 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110714/957b771c/attachment.pgp>


More information about the Beginners mailing list