Cristian Garcia
2015-06-23 21:31:43 UTC
Look at issue #11 <https://github.com/chalin/DEP-non-null/issues/11> I
posted on github. I post the text again here:
The proposal states
That is, generally speaking, an unadorned class type T will represent the
non-null type consisting (strictly) of instances of T. When needed, the
meta type annotation ? can be used; ?T denotes the nullable type derived
from T, consisting of values from T or null.
Doesn't the statement
T or null
practically imply/begs for *union types*? Ceylon does this beautifully
where String? is short hand for String | Null. Dart could integrate the
same approach now that its making breaking changes.
posted on github. I post the text again here:
The proposal states
That is, generally speaking, an unadorned class type T will represent the
non-null type consisting (strictly) of instances of T. When needed, the
meta type annotation ? can be used; ?T denotes the nullable type derived
from T, consisting of values from T or null.
Doesn't the statement
T or null
practically imply/begs for *union types*? Ceylon does this beautifully
where String? is short hand for String | Null. Dart could integrate the
same approach now that its making breaking changes.
--
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.
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.