Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The ability to hide stuff sort of takes the "script" out of Javascript.


What do you mean by that? A closure like

    function foo() {
      var x = 0;
      return function () { return x++; }
    }
and the equivalent in Python/Ruby/any language with closures hides x even better than a private member in Java would.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: