Skip to content
loading...

re: Basic monads in Javascript VIEW POST

FULL DISCUSSION
 

Thanks, I wonder what the implications are for performance?

 

Typically pretty negligible. The Maybe monad just checks the value against null and undefined and calls the callback function. So, not much happening.

 

Yes, but you also create a new callback function for each step, and the gc should clean them up.

code of conduct - report abuse