Why does Google's closure library not use real private members?
- by Thor Thurn
I've been a JavaScript developer for a while now, and I've always thought that the correct way to implement private members in JavaScript is to use the technique outlined by Doug Crockford here: http://javascript.crockford.com/private.html.
I didn't think this was a particularly controversial piece of JavaScript wisdom, until I started using the…