Hacker News new | ask | show | jobs
by seanalltogether 4093 days ago

  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.