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

I've always wished they'd have totally embraced their shortcuts and added as many as possible.

they could shorten every setter and function so c.width could just be w() or c.w= and c.fillStyle could just be fs(style) or c.fs=

They arbitrary shorten somethings but not others seems well... arbitrary



You know, the 140 chars limit or even the fact that there should be a limit at all is arbitrary too :)


Hmm, a Short JS or Golfed JS standard should be ratified.

Like jQuery.

"But that's cheating!", people will say. I disagree; JS is verbose, but it's so widespread that if we can shorten it will result in new levels of compact creativity that we are missing out on. And JS is so full of frameworks, something like this wouldn't set that much precedent.




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

Search: