Skip to main content

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Coreimpl finally waves goodbye, and more breaking changes

Looks like the work on Dart libraries is really picking up. It was announced that dart:coreimpl is being removed, and some methods on numbers are now more simple getters.

dart:coreimpl will be removed

Anders Johnsen wrote to the Dart mailing list:

I've already started moving implementation classes out of dart:coreimpl and making them a private member of dart:core. I'll continue to move the rest over the week. 
Once the move is done, we intent to re-expose some of the same functionality in other libraries. 
If you are currently using any of the classes in dart:coreimpl, you can make a local copy for your program to use, and file a bug for a feature request in the library area on http://dartbug.com/new.
isNaN and friends are now getters

Florian Loitsch also wrote:

Starting with r13974, you'll find that isNaN, isInfinite, isEven, isOdd, isNegative on numbers are now getters. In the same CL I updated the fixnum pkg where I also change isZero, isMaxValue and isMinValue. 
https://codereview.chromium.org/11227042/diff/2001/lib/core/num.dart 
https://codereview.chromium.org/11227042/diff/2001/pkg/fixnum/intx.dart 

In general the fix should be easy:
d.isNaN() -> d.isNaN, ...

We suspect this is only the beginning. Stay tuned on the Dart mailing list or ask questions on Stack Overflow.