On Jan 13, 2015, at 9:58 PM, Alexander Praetorius <[email protected]> wrote:
> 
> it seems, that the closure way is faster.
> it was just the creation of functions whenever the closure was executed,
> while the prototype version uses the same function,


But that is the key difference, as you write below:


> But maybe in a real world example, if i would just replace methods like:
>        appeal: appeal,
>        snark: snark
> with something like
>        appeal: function () { return appeal(api); },
>        snark: function () {return snark(api); }


Or am I missing something?

You are not creating a closure (closing over something), without some anonymous 
functions.

        —ravi


-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/149AF990-576D-416B-AD38-9FD8917BA7F4%40g8o.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to