Firefox 2.0 beta is out and it supports javascript 1.7. The main new features of javascript 1.7 seems to be

  • the introduction of generators (did you say yield?),
  • the let expressions,
  • and destructuring assignment

amongst others.

You can read an explanation on the Mozilla developers web site.

I find the generators thing a bit awkward. I find the Ruby one more intuitive. It's like it is used upside down.

I know the let expression thing from Lisp.

The destructuring assignment is a nice addition to javascript and allow you to do things like

[ a, b ] = function_returning_array()

Hopefully, these will make programming javascript a bit more intuitive. Let's hope Microsoft will integrate the technology in Internet Explorer 7.