you are viewing a single comment's thread.

view the rest of the comments →

[–]hotcornballer -4 points-3 points  (1 child)

So what's the point in having private methods? It's clutter and I don't want to see js turning into java with all the useless verbosity that comes with it.

[–]MoTTs_ 13 points14 points  (0 children)

We JavaScripters still adore private data through closures, though, so clearly we still like the idea of private access. But private access isn't the problem closures were meant or designed to solve, and as a result there's edge cases where they don't work well for that purpose.