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!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: