Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Issue 2555343004: Make Null act like the bottom type for all the (default nullable) types. (Closed)

Created:
4 years ago by Lasse Reichstein Nielsen
Modified:
3 years, 11 months ago
CC:
karlklose, Johnni Winther
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make Null act like the bottom type for all the (default nullable) types. BUG= http://dartbug.com/28024 R=eernst@google.com Committed: https://github.com/dart-lang/sdk/commit/10abaf89fd9378ff4f5d5258ba7e018f204ee4ac

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -12 lines) Patch
M docs/language/dartLangSpec.tex View 1 4 chunks +5 lines, -12 lines 4 comments Download

Messages

Total messages: 15 (4 generated)
Lasse Reichstein Nielsen
My first (and not really proof-read or anything) go at making Null act as if ...
4 years ago (2016-12-08 14:04:31 UTC) #2
karlklose
https://codereview.chromium.org/2555343004/diff/1/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/2555343004/diff/1/docs/language/dartLangSpec.tex#newcode2622 docs/language/dartLangSpec.tex:2622: The \code{Null} type can be assigned anywhere without complaint ...
4 years ago (2016-12-09 08:03:55 UTC) #3
Johnni Winther
lgtm
4 years ago (2016-12-09 09:50:09 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/2555343004/diff/1/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/2555343004/diff/1/docs/language/dartLangSpec.tex#newcode2622 docs/language/dartLangSpec.tex:2622: The \code{Null} type can be assigned anywhere without complaint ...
4 years ago (2016-12-09 10:32:44 UTC) #5
Lasse Reichstein Nielsen
4 years ago (2016-12-09 10:33:49 UTC) #7
eernst
LGTM, noting that we are bending the subtype rules to make them work as if ...
4 years ago (2016-12-09 10:55:49 UTC) #8
Lasse Reichstein Nielsen
Committed patchset #2 (id:20001) manually as 10abaf89fd9378ff4f5d5258ba7e018f204ee4ac (presubmit successful).
4 years ago (2016-12-09 11:59:51 UTC) #10
judgementesports12
On 2016/12/09 10:55:49, eernst wrote: > LGTM, noting that we are bending the subtype rules ...
4 years ago (2016-12-09 13:04:41 UTC) #11
judgementesports12
On 2016/12/09 11:59:51, Lasse Reichstein Nielsen wrote: > Committed patchset #2 (id:20001) manually as > ...
4 years ago (2016-12-09 13:06:41 UTC) #12
Leaf
https://codereview.chromium.org/2555343004/diff/20001/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/2555343004/diff/20001/docs/language/dartLangSpec.tex#newcode7377 docs/language/dartLangSpec.tex:7377: \item $T$ is \NULL{} and $S$ is not $\bot$. ...
3 years, 11 months ago (2017-01-18 00:58:37 UTC) #14
Lasse Reichstein Nielsen
3 years, 11 months ago (2017-01-20 08:03:16 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/2555343004/diff/20001/docs/language/dartLangS...
File docs/language/dartLangSpec.tex (right):

https://codereview.chromium.org/2555343004/diff/20001/docs/language/dartLangS...
docs/language/dartLangSpec.tex:7377: \item $T$ is \NULL{} and $S$ is not $\bot$.
On 2017/01/18 00:58:36, Leaf wrote:
> Should \NULL{} here be \code{Null}?

Done.

https://codereview.chromium.org/2555343004/diff/20001/docs/language/dartLangS...
docs/language/dartLangSpec.tex:7405: An interface type $T$ may be assigned to a
type $S$, written  $T \Longleftrightarrow S$, iff either $T <: S$, $S <: T$, or
either $T$ or $S$ is the \code{Null} type.
It's not. Good catch.

Powered by Google App Engine
This is Rietveld 408576698