Hacker News new | past | comments | ask | show | jobs | submit login

  if ( !b )
    for ( var j in a )
      this.style[j] = a[j];
  else
    this.style[a] = b;  

I really dis-liked having unnecessary braces. Thisā€¦ unfortunateā€¦ style preference plagued us for quite a while and caused all sorts of avoidable logic errors.

I really wish this kind of coding was removed completely from some languages.




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

Search: