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

Issue 27209004: Least upper bound fixes. (Closed)

Created:
7 years, 2 months ago by gbracha
Modified:
7 years, 2 months ago
Reviewers:
Johnni Winther
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Least upper bound fixes. Committed: https://code.google.com/p/dart/source/detail?r=28672

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -7 lines) Patch
M docs/language/dartLangSpec.tex View 1 2 3 9 chunks +38 lines, -7 lines 9 comments Download

Messages

Total messages: 6 (0 generated)
gbracha
I'll send you the PDF for your sanity
7 years, 2 months ago (2013-10-14 19:24:04 UTC) #1
gbracha
Committed patchset #5 manually as r28672 (presubmit successful).
7 years, 2 months ago (2013-10-15 18:39:59 UTC) #2
Johnni Winther
https://codereview.chromium.org/27209004/diff/12001/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/27209004/diff/12001/docs/language/dartLangSpec.tex#newcode5986 docs/language/dartLangSpec.tex:5986: where $depth(T)$ is the number of steps in the ...
7 years, 2 months ago (2013-10-23 07:46:05 UTC) #3
Johnni Winther
https://codereview.chromium.org/27209004/diff/12001/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/27209004/diff/12001/docs/language/dartLangSpec.tex#newcode5990 docs/language/dartLangSpec.tex:5990: Let $U$ be a type variable with upper bound ...
7 years, 2 months ago (2013-10-23 12:21:55 UTC) #4
Johnni Winther
https://codereview.chromium.org/27209004/diff/12001/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/27209004/diff/12001/docs/language/dartLangSpec.tex#newcode5986 docs/language/dartLangSpec.tex:5986: where $depth(T)$ is the number of steps in the ...
7 years, 2 months ago (2013-10-24 11:34:49 UTC) #5
Johnni Winther
7 years, 2 months ago (2013-10-24 14:05:00 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/27209004/diff/12001/docs/language/dartLangSpe...
File docs/language/dartLangSpec.tex (right):

https://codereview.chromium.org/27209004/diff/12001/docs/language/dartLangSpe...
docs/language/dartLangSpec.tex:5988: The least upper bound of \DYNAMIC{} and any
type $T$ is \DYNAMIC{}.
On 2013/10/23 07:46:05, Johnni Winther wrote:
> Maybe this should be the opposite to follow the invariant from above.

I need to flip a bit in my head: any type _is_ more specific than dynamic! Sorry
for the noise.

https://codereview.chromium.org/27209004/diff/12001/docs/language/dartLangSpe...
docs/language/dartLangSpec.tex:5989: The least upper bound of \VOID{} and any
type $T \ne \DYNAMIC{}$ is \VOID{}.
On 2013/10/23 07:46:05, Johnni Winther wrote:
> By the definition of << on function types we could say that T << void for any
T,
> and use the invariant. This would then change lub(void,dynamic) to void which
I
> think is better anyway. For instance:
> 
> void m1() {}
> m2() {}
> 
> int a = b ? m1() : m2(); // Warning void is not assignable to int.

Again. Noise. (Though a better warning in this example...)

Powered by Google App Engine
This is Rietveld 408576698