Discussion:
[dart-misc] [dart-announce] Dart 1.12 "RC0" ready for testing
'Seth Ladd' via Dart Announcements
2015-08-25 15:03:03 UTC
Permalink
tldr: Dart 1.12.0-dev.5.10 ("RC0") is ready for testing! Please download it
<https://www.dartlang.org/downloads/archive/> and test it against your
apps. This is the first release candidate of 1.12. It contains the new
null-aware operators language feature, and enhancements to pub,
Observatory, dartdoc, and much more.

Null-aware operators

The new null-aware operators
<http://blog.sethladd.com/2015/07/null-aware-operators-in-dart.html> help
you reduce the amount of code required to work with references that are
potentially null. This feature is a collection of syntactic sugar for
traversing (potentially null) object calls, conditionally setting a
variable, and evaluating two (potentially null) expressions.

`??`: if null operator. `expr1 ?? expr2` evaluates to `expr1` if not
`null`, otherwise `expr2`.

`??=`: null-aware assignment. `v ??= expr` causes `v` to be assigned `expr`
only if `v` is `null`.

`x?.p`: null-aware access. `x?.p` evaluates to `x.p` if `x` is not `null`,
otherwise evaluates to `null`.

`x?.m()`: null-aware method invocation. `x?.m()` invokes `m` only if `x` is
not `null`.

Learn more about Dart's null-aware operators in our Language Tour
<https://www.dartlang.org/docs/dart-up-and-running/ch02.html>.

.packages file

We continue in our efforts to eliminate symlinks by introducing the .packages
file, which is a new way to specify where to find package dependencies. The
pub package manager now writes a .packages file when getting or upgrading
dependencies, and the VM and dartanalyzer use the .packages file for
package resolution.

The Dart SDK still generates symlinks in 1.12, but the .packages file gets
us closer to eliminating them. If you have tools that introspect packages,
now is a good time to investigate the .packages file
<http://blog.sethladd.com/2015/08/new-dart-sdk-eliminates-symlinks.html>.

dartdoc

The dartdoc tool <https://github.com/dart-lang/dartdoc> is a new way to
generate beautiful, fast-loading API docs. It replaces dartdocgen, which we
plan to remove from the SDK as soon as 1.13. dartdoc generates static docs,
helps you search with find-as-you-type, and looks great on a mobile device.

dartfmt

Speed up your code reviews by automatically formatting your code. The dartfmt
tool <https://github.com/dart-lang/dart_style> has been largely rewritten
to support better handling for long argument lists, smarter indentation for
cascades, nested functions, and collections, and fixes over 50 issues.

Observatory

Help identify memory leaks with Observatory's updated allocation profiler.
Turn it on for a class, and track where instances of that class are
created. Also new in 1.12 is support for dart:developer's log() function,
which your app can use to stream log calls into Observatory's (or any
connected debugger) console.

Stepping through async/await code has been significantly improved with
Observatory's new anext command. You can now step over an await call, onto
the next line of your code.

pub

The pub run commands can now toggle checked mode, with --checked. Pub now
writes a .packages file when getting, upgrading, and globally activating
your packages.

Lots more

The Dart SDK 1.12 CHANGELOG
<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#1120> has lots
more details about various API tweaks. We look forward to your feedback
<https://github.com/dart-lang/sdk/issues>, so we can release 1.12 final.
Please test your packages and apps with 1.12 "RC0" and report issues
<https://github.com/dart-lang/sdk/issues>.
--
For more news and information, visit https://plus.google.com/+dartlang

To join the conversation, visit https://groups.google.com/a/dartlang.org/
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Seth Ladd' via Dart Misc
2015-08-25 15:45:39 UTC
Permalink
tldr: Dart 1.12.0-dev.5.10 ("RC0") is ready for testing! Please download it
<https://www.dartlang.org/downloads/archive/> and test it against your
apps. This is the first release candidate of 1.12. It contains the new
null-aware operators language feature, and enhancements to pub,
Observatory, dartdoc, and much more.

Null-aware operators

The new null-aware operators
<http://blog.sethladd.com/2015/07/null-aware-operators-in-dart.html> help
you reduce the amount of code required to work with references that are
potentially null. This feature is a collection of syntactic sugar for
traversing (potentially null) object calls, conditionally setting a
variable, and evaluating two (potentially null) expressions.

`??`: if null operator. `expr1 ?? expr2` evaluates to `expr1` if not
`null`, otherwise `expr2`.

`??=`: null-aware assignment. `v ??= expr` causes `v` to be assigned `expr`
only if `v` is `null`.

`x?.p`: null-aware access. `x?.p` evaluates to `x.p` if `x` is not `null`,
otherwise evaluates to `null`.

`x?.m()`: null-aware method invocation. `x?.m()` invokes `m` only if `x` is
not `null`.

Learn more about Dart's null-aware operators in our Language Tour
<https://www.dartlang.org/docs/dart-up-and-running/ch02.html>.

.packages file

We continue in our efforts to eliminate symlinks by introducing the .packages
file, which is a new way to specify where to find package dependencies. The
pub package manager now writes a .packages file when getting or upgrading
dependencies, and the VM and dartanalyzer use the .packages file for
package resolution.

The Dart SDK still generates symlinks in 1.12, but the .packages file gets
us closer to eliminating them. If you have tools that introspect packages,
now is a good time to investigate the .packages file
<http://blog.sethladd.com/2015/08/new-dart-sdk-eliminates-symlinks.html>.

dartdoc

The dartdoc tool <https://github.com/dart-lang/dartdoc> is a new way to
generate beautiful, fast-loading API docs. It replaces dartdocgen, which we
plan to remove from the SDK as soon as 1.13. dartdoc generates static docs,
helps you search with find-as-you-type, and looks great on a mobile device.

dartfmt

Speed up your code reviews by automatically formatting your code. The dartfmt
tool <https://github.com/dart-lang/dart_style> has been largely rewritten
to support better handling for long argument lists, smarter indentation for
cascades, nested functions, and collections, and fixes over 50 issues.

Observatory

Help identify memory leaks with Observatory's updated allocation profiler.
Turn it on for a class, and track where instances of that class are
created. Also new in 1.12 is support for dart:developer's log() function,
which your app can use to stream log calls into Observatory's (or any
connected debugger) console.

Stepping through async/await code has been significantly improved with
Observatory's new anext command. You can now step over an await call, onto
the next line of your code.

pub

The pub run commands can now toggle checked mode, with --checked. Pub now
writes a .packages file when getting, upgrading, and globally activating
your packages.

Lots more

The Dart SDK 1.12 CHANGELOG
<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#1120> has lots
more details about various API tweaks. We look forward to your feedback
<https://github.com/dart-lang/sdk/issues>, so we can release 1.12 final.
Please test your packages and apps with 1.12 "RC0" and report issues
<https://github.com/dart-lang/sdk/issues>.
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Ron Gonzalez Lobo
2015-08-25 16:02:20 UTC
Permalink
That's great!

My WebStorm just told me ;)

On Tuesday, August 25, 2015 at 8:03:42 AM UTC-7, 'Seth Ladd' via Dart
Post by 'Seth Ladd' via Dart Announcements
tldr: Dart 1.12.0-dev.5.10 ("RC0") is ready for testing! Please download
it <https://www.dartlang.org/downloads/archive/> and test it against your
apps. This is the first release candidate of 1.12. It contains the new
null-aware operators language feature, and enhancements to pub,
Observatory, dartdoc, and much more.
Null-aware operators
The new null-aware operators
<http://blog.sethladd.com/2015/07/null-aware-operators-in-dart.html> help
you reduce the amount of code required to work with references that are
potentially null. This feature is a collection of syntactic sugar for
traversing (potentially null) object calls, conditionally setting a
variable, and evaluating two (potentially null) expressions.
`??`: if null operator. `expr1 ?? expr2` evaluates to `expr1` if not
`null`, otherwise `expr2`.
`??=`: null-aware assignment. `v ??= expr` causes `v` to be assigned
`expr` only if `v` is `null`.
`x?.p`: null-aware access. `x?.p` evaluates to `x.p` if `x` is not `null`,
otherwise evaluates to `null`.
`x?.m()`: null-aware method invocation. `x?.m()` invokes `m` only if `x`
is not `null`.
Learn more about Dart's null-aware operators in our Language Tour
<https://www.dartlang.org/docs/dart-up-and-running/ch02.html>.
.packages file
We continue in our efforts to eliminate symlinks by introducing the .packages
file, which is a new way to specify where to find package dependencies.
The pub package manager now writes a .packages file when getting or
upgrading dependencies, and the VM and dartanalyzer use the .packages file
for package resolution.
The Dart SDK still generates symlinks in 1.12, but the .packages file gets
us closer to eliminating them. If you have tools that introspect packages,
now is a good time to investigate the .packages file
<http://blog.sethladd.com/2015/08/new-dart-sdk-eliminates-symlinks.html>.
dartdoc
The dartdoc tool <https://github.com/dart-lang/dartdoc> is a new way to
generate beautiful, fast-loading API docs. It replaces dartdocgen, which we
plan to remove from the SDK as soon as 1.13. dartdoc generates static docs,
helps you search with find-as-you-type, and looks great on a mobile device.
dartfmt
Speed up your code reviews by automatically formatting your code. The dartfmt
tool <https://github.com/dart-lang/dart_style> has been largely rewritten
to support better handling for long argument lists, smarter indentation for
cascades, nested functions, and collections, and fixes over 50 issues.
Observatory
Help identify memory leaks with Observatory's updated allocation profiler.
Turn it on for a class, and track where instances of that class are
created. Also new in 1.12 is support for dart:developer's log() function,
which your app can use to stream log calls into Observatory's (or any
connected debugger) console.
Stepping through async/await code has been significantly improved with
Observatory's new anext command. You can now step over an await call,
onto the next line of your code.
pub
The pub run commands can now toggle checked mode, with --checked. Pub now
writes a .packages file when getting, upgrading, and globally activating
your packages.
Lots more
The Dart SDK 1.12 CHANGELOG
<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#1120> has lots
more details about various API tweaks. We look forward to your feedback
<https://github.com/dart-lang/sdk/issues>, so we can release 1.12 final.
Please test your packages and apps with 1.12 "RC0" and report issues
<https://github.com/dart-lang/sdk/issues>.
--
For more news and information, visit https://plus.google.com/+dartlang
To join the conversation, visit https://groups.google.com/a/dartlang.org/
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Daniel Davidson
2015-08-29 19:58:13 UTC
Permalink
What is the right way to work some of this into code in terms of pub?
So with packages when you want to support a new version you can bump a
version spec. What is the comparable approach for the language itself?

On Tuesday, August 25, 2015 at 10:03:42 AM UTC-5, 'Seth Ladd' via Dart
Post by 'Seth Ladd' via Dart Announcements
tldr: Dart 1.12.0-dev.5.10 ("RC0") is ready for testing! Please download
it <https://www.dartlang.org/downloads/archive/> and test it against your
apps. This is the first release candidate of 1.12. It contains the new
null-aware operators language feature, and enhancements to pub,
Observatory, dartdoc, and much more.
Null-aware operators
The new null-aware operators
<http://blog.sethladd.com/2015/07/null-aware-operators-in-dart.html> help
you reduce the amount of code required to work with references that are
potentially null. This feature is a collection of syntactic sugar for
traversing (potentially null) object calls, conditionally setting a
variable, and evaluating two (potentially null) expressions.
`??`: if null operator. `expr1 ?? expr2` evaluates to `expr1` if not
`null`, otherwise `expr2`.
`??=`: null-aware assignment. `v ??= expr` causes `v` to be assigned
`expr` only if `v` is `null`.
`x?.p`: null-aware access. `x?.p` evaluates to `x.p` if `x` is not `null`,
otherwise evaluates to `null`.
`x?.m()`: null-aware method invocation. `x?.m()` invokes `m` only if `x`
is not `null`.
Learn more about Dart's null-aware operators in our Language Tour
<https://www.dartlang.org/docs/dart-up-and-running/ch02.html>.
.packages file
We continue in our efforts to eliminate symlinks by introducing the .packages
file, which is a new way to specify where to find package dependencies.
The pub package manager now writes a .packages file when getting or
upgrading dependencies, and the VM and dartanalyzer use the .packages file
for package resolution.
The Dart SDK still generates symlinks in 1.12, but the .packages file gets
us closer to eliminating them. If you have tools that introspect packages,
now is a good time to investigate the .packages file
<http://blog.sethladd.com/2015/08/new-dart-sdk-eliminates-symlinks.html>.
dartdoc
The dartdoc tool <https://github.com/dart-lang/dartdoc> is a new way to
generate beautiful, fast-loading API docs. It replaces dartdocgen, which we
plan to remove from the SDK as soon as 1.13. dartdoc generates static docs,
helps you search with find-as-you-type, and looks great on a mobile device.
dartfmt
Speed up your code reviews by automatically formatting your code. The dartfmt
tool <https://github.com/dart-lang/dart_style> has been largely rewritten
to support better handling for long argument lists, smarter indentation for
cascades, nested functions, and collections, and fixes over 50 issues.
Observatory
Help identify memory leaks with Observatory's updated allocation profiler.
Turn it on for a class, and track where instances of that class are
created. Also new in 1.12 is support for dart:developer's log() function,
which your app can use to stream log calls into Observatory's (or any
connected debugger) console.
Stepping through async/await code has been significantly improved with
Observatory's new anext command. You can now step over an await call,
onto the next line of your code.
pub
The pub run commands can now toggle checked mode, with --checked. Pub now
writes a .packages file when getting, upgrading, and globally activating
your packages.
Lots more
The Dart SDK 1.12 CHANGELOG
<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#1120> has lots
more details about various API tweaks. We look forward to your feedback
<https://github.com/dart-lang/sdk/issues>, so we can release 1.12 final.
Please test your packages and apps with 1.12 "RC0" and report issues
<https://github.com/dart-lang/sdk/issues>.
--
For more news and information, visit https://plus.google.com/+dartlang
To join the conversation, visit https://groups.google.com/a/dartlang.org/
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Matthew Butler
2015-08-30 01:46:00 UTC
Permalink
Using SDK Constraints in your package[1]:

environment:
sdk: '>=1.12.0 <2.0.0'

[1]: https://www.dartlang.org/tools/pub/pubspec.html#sdk-constraints
Post by Daniel Davidson
What is the right way to work some of this into code in terms of pub?
So with packages when you want to support a new version you can bump a
version spec. What is the comparable approach for the language itself?
On Tuesday, August 25, 2015 at 10:03:42 AM UTC-5, 'Seth Ladd' via Dart
Post by 'Seth Ladd' via Dart Announcements
tldr: Dart 1.12.0-dev.5.10 ("RC0") is ready for testing! Please download
it <https://www.dartlang.org/downloads/archive/> and test it against
your apps. This is the first release candidate of 1.12. It contains the new
null-aware operators language feature, and enhancements to pub,
Observatory, dartdoc, and much more.
Null-aware operators
The new null-aware operators
<http://blog.sethladd.com/2015/07/null-aware-operators-in-dart.html>
help you reduce the amount of code required to work with references that
are potentially null. This feature is a collection of syntactic sugar for
traversing (potentially null) object calls, conditionally setting a
variable, and evaluating two (potentially null) expressions.
`??`: if null operator. `expr1 ?? expr2` evaluates to `expr1` if not
`null`, otherwise `expr2`.
`??=`: null-aware assignment. `v ??= expr` causes `v` to be assigned
`expr` only if `v` is `null`.
`x?.p`: null-aware access. `x?.p` evaluates to `x.p` if `x` is not
`null`, otherwise evaluates to `null`.
`x?.m()`: null-aware method invocation. `x?.m()` invokes `m` only if `x`
is not `null`.
Learn more about Dart's null-aware operators in our Language Tour
<https://www.dartlang.org/docs/dart-up-and-running/ch02.html>.
.packages file
We continue in our efforts to eliminate symlinks by introducing the .packages
file, which is a new way to specify where to find package dependencies.
The pub package manager now writes a .packages file when getting or
upgrading dependencies, and the VM and dartanalyzer use the .packages file
for package resolution.
The Dart SDK still generates symlinks in 1.12, but the .packages file
gets us closer to eliminating them. If you have tools that introspect
packages, now is a good time to investigate the .packages file
<http://blog.sethladd.com/2015/08/new-dart-sdk-eliminates-symlinks.html>.
dartdoc
The dartdoc tool <https://github.com/dart-lang/dartdoc> is a new way to
generate beautiful, fast-loading API docs. It replaces dartdocgen, which we
plan to remove from the SDK as soon as 1.13. dartdoc generates static docs,
helps you search with find-as-you-type, and looks great on a mobile device.
dartfmt
Speed up your code reviews by automatically formatting your code. The dartfmt
tool <https://github.com/dart-lang/dart_style> has been largely
rewritten to support better handling for long argument lists, smarter
indentation for cascades, nested functions, and collections, and fixes over
50 issues.
Observatory
Help identify memory leaks with Observatory's updated allocation profiler.
Turn it on for a class, and track where instances of that class are
created. Also new in 1.12 is support for dart:developer's log() function,
which your app can use to stream log calls into Observatory's (or any
connected debugger) console.
Stepping through async/await code has been significantly improved with
Observatory's new anext command. You can now step over an await call,
onto the next line of your code.
pub
The pub run commands can now toggle checked mode, with --checked. Pub
now writes a .packages file when getting, upgrading, and globally
activating your packages.
Lots more
The Dart SDK 1.12 CHANGELOG
<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#1120> has
lots more details about various API tweaks. We look forward to your
feedback <https://github.com/dart-lang/sdk/issues>, so we can release
1.12 final. Please test your packages and apps with 1.12 "RC0" and report
issues <https://github.com/dart-lang/sdk/issues>.
--
For more news and information, visit https://plus.google.com/+dartlang
To join the conversation, visit https://groups.google.com/a/dartlang.org/
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Don Olmstead
2015-08-30 18:25:10 UTC
Permalink
It'd also be nice if Sean could get den to provide a way to update sdk
constraints automagically, https://github.com/seaneagan/den.
Post by Matthew Butler
sdk: '>=1.12.0 <2.0.0'
[1]: https://www.dartlang.org/tools/pub/pubspec.html#sdk-constraints
Post by Daniel Davidson
What is the right way to work some of this into code in terms of pub?
So with packages when you want to support a new version you can bump a
version spec. What is the comparable approach for the language itself?
On Tuesday, August 25, 2015 at 10:03:42 AM UTC-5, 'Seth Ladd' via Dart
Post by 'Seth Ladd' via Dart Announcements
tldr: Dart 1.12.0-dev.5.10 ("RC0") is ready for testing! Please download
it <https://www.dartlang.org/downloads/archive/> and test it against
your apps. This is the first release candidate of 1.12. It contains the new
null-aware operators language feature, and enhancements to pub,
Observatory, dartdoc, and much more.
Null-aware operators
The new null-aware operators
<http://blog.sethladd.com/2015/07/null-aware-operators-in-dart.html>
help you reduce the amount of code required to work with references that
are potentially null. This feature is a collection of syntactic sugar for
traversing (potentially null) object calls, conditionally setting a
variable, and evaluating two (potentially null) expressions.
`??`: if null operator. `expr1 ?? expr2` evaluates to `expr1` if not
`null`, otherwise `expr2`.
`??=`: null-aware assignment. `v ??= expr` causes `v` to be assigned
`expr` only if `v` is `null`.
`x?.p`: null-aware access. `x?.p` evaluates to `x.p` if `x` is not
`null`, otherwise evaluates to `null`.
`x?.m()`: null-aware method invocation. `x?.m()` invokes `m` only if `x`
is not `null`.
Learn more about Dart's null-aware operators in our Language Tour
<https://www.dartlang.org/docs/dart-up-and-running/ch02.html>.
.packages file
We continue in our efforts to eliminate symlinks by introducing the .packages
file, which is a new way to specify where to find package dependencies.
The pub package manager now writes a .packages file when getting or
upgrading dependencies, and the VM and dartanalyzer use the .packages file
for package resolution.
The Dart SDK still generates symlinks in 1.12, but the .packages file
gets us closer to eliminating them. If you have tools that introspect
packages, now is a good time to investigate the .packages file
<http://blog.sethladd.com/2015/08/new-dart-sdk-eliminates-symlinks.html>
.
dartdoc
The dartdoc tool <https://github.com/dart-lang/dartdoc> is a new way to
generate beautiful, fast-loading API docs. It replaces dartdocgen, which we
plan to remove from the SDK as soon as 1.13. dartdoc generates static docs,
helps you search with find-as-you-type, and looks great on a mobile device.
dartfmt
Speed up your code reviews by automatically formatting your code. The dartfmt
tool <https://github.com/dart-lang/dart_style> has been largely
rewritten to support better handling for long argument lists, smarter
indentation for cascades, nested functions, and collections, and fixes over
50 issues.
Observatory
Help identify memory leaks with Observatory's updated allocation
profiler. Turn it on for a class, and track where instances of that
class are created. Also new in 1.12 is support for dart:developer's log()
function, which your app can use to stream log calls into Observatory's (or
any connected debugger) console.
Stepping through async/await code has been significantly improved with
Observatory's new anext command. You can now step over an await call,
onto the next line of your code.
pub
The pub run commands can now toggle checked mode, with --checked. Pub
now writes a .packages file when getting, upgrading, and globally
activating your packages.
Lots more
The Dart SDK 1.12 CHANGELOG
<https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#1120> has
lots more details about various API tweaks. We look forward to your
feedback <https://github.com/dart-lang/sdk/issues>, so we can release
1.12 final. Please test your packages and apps with 1.12 "RC0" and report
issues <https://github.com/dart-lang/sdk/issues>.
--
For more news and information, visit https://plus.google.com/+dartlang
To join the conversation, visit
https://groups.google.com/a/dartlang.org/
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...