prototype chains and closure scopes actually work in a precisely similar way.

this gist gives some examples of identical structures created with
scopes and prototypes.

https://gist.github.com/2904285


On Thu, Jun 21, 2012 at 7:34 AM, P. Douglas Reeder <[email protected]> wrote:
> Use the style that your team find most natural for the problem you're 
> solving.  That will make it easier to fix bugs and add enhancements.
>
> If profiling shows one part of your app is the bottleneck, consider rewriting 
> it.
>
> Other problems may make other styles more appropriate.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> 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 post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to