New Dart Editor build 0.2.7.1_r15699 available: Opportunities and Stakes for Developers
Since December 04, 2012 a
new Dart Editor build is available. Henceforth the Changes include: Breaking changes, improvements and dart:html changes.
Now let us take a look: The
extract local Variable refactoring can now extract part of a string literal; Several
build.dart improvements, including better error reporting; There's now an
option to not warn when a class with noSuchMethod() has unimplemented members ;
Added an analyzer command line option: --type-checks-for-inferred-types. (This
lets command line users get the same warnings they would get with the editor.).Etc.
Regarding Breaking changes: support
for the old getter definition syntax was disabled. The empty formal parameter
list in the getter definition will be a compile error. To convert your
sources from old to new syntax, simply remove the empty parameter list after
the getter name. For example:
old: int get Length() => a.length;
new: int get Length => a.length;
Finally dart:html changes: Members
have been ‘dartified’- they now follow the Dart naming guidelines (caveat that
innerHTML has been special-cased to ease the transition to innerHtml) /old:
Element.innerHTML/new: Element.innerHtml. Element.addText and Element.addHtml
have been renamed to Element.appendText and Element.appendHtml.
There is now
Element.append(element) as an abbreviation to Element.children.add(element) and
pkg/htmlescape has been deleted.
Comments