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

You can even get more thrifty by saving on vars as well :) and conserve some more electrons besides those affected by semicolons.

   _obj.publicVariable = 'bar'
   _obj.publicMethod = function(){}
Personally I cannot type any statement without an ending semicolon, it is a mannerism that stayed with me since I had to learn Pascal. It makes it difficult for me to do anything useful in Python and I am actually contemplating to see a therapist for this.


Not only is that more thrifty, but it is necessary. Thanks for catching the typo!




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

Search: