Wednesday, November 26th, 2008

NetBeans Adds JavaScript 1.7 Support

Category: JavaScript

<p>Dion and I were just talking about NetBeans (Sun’s free Java IDE) with some colleagues the other day. To those in the Java community, just mentioning “NetBeans” can conjure up some of the worst memories of mounting file systems and purple-hued user interfaces.

But in reality, today’s NetBeans is a fantastic IDE with a modern-looking interface and some very cool and well-implemented features. Tor Norbye, one of Sun’s star engineers, took a minute to update us on the state of JavaScript 1.7 support in NetBeans:

I just checked in support for JavaScript 1.7. This means that NetBeans will no longer give you syntax errors if you try to use the new language…

This work isn’t done; I’d like it to be smarter about generators, and there may be some issues with scope handling. But at least the editor doesn’t get in your way with false error messages now – you can start writing JavaScript 1.7 clean code. (This is with NetBeans 7.0 dev).

For example, the yield keyword is recognized (as shown above) and

the let keyword can be used, as well as destructuring assignments, generators and iterators, etc. (See New In JavaScript 1.7 for more information).

Tor has a blog entry with a bit more information.

Related Content:

Posted by Ben Galbraith at 8:00 am
3 Comments

++++-
4.6 rating from 16 votes

3 Comments »

Comments feed TrackBack URI

Netbeans’ download page has a number of bundles, and Javascript doesn’t feature among the 10 langauges/frameworks mentioned. It would be nice to know which of the bundles includes Javascript support.

Comment by Michael Mahemoff — November 26, 2008

I know for sure it comes with the Java bundle (because that’s what I use) but I would imagine it would also come with the other (except maybe c/c++). Its really easy to just add it (or any other language support) in using the plugin manager.

Comment by genericallyloud — November 26, 2008

I actually just switched to Netbeans for all of my js development. I switched because I’m completely dependent on vim keybindings, but I needed a file browser and a bit of other IDE chrome. With the jVi plugin, Netbeans more than adequately fulfills all of this.

I was also a quite interested in writing some templates for their UML tools in order to automatically generate JavaScript code (wouldn’t be too hard if I were to use the Java templates as a starting point), but I just found out their UML tools don’t support import/export of XMI, so this makes me feel it’s probably not worth investing my time in a tool that doesn’t support interoperability.

Comment by otakuj462 — November 26, 2008

Leave a comment

You must be logged in to post a comment.