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

Issue 2998073002: Added static warning on assignment to final locals; adjusted for-in. (Closed)

Created:
3 years, 4 months ago by eernst
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org, floitsch
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Added static warning on assignment to final locals; adjusted for-in. Addresses spec omission which was brought up in SDK issue #30483. The following issue was created specifically on this topic: #30489. R=lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/6ef388db9dc8f1a03187b56f0324697744e71aa3

Patch Set 1 #

Patch Set 2 : Added CHANGES line #

Patch Set 3 : Adjusted asynchronous for-in similarly to the plain for-in #

Patch Set 4 : Typos #

Total comments: 4

Patch Set 5 : Review response #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M docs/language/dartLangSpec.tex View 1 2 3 4 4 chunks +23 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
eernst
Might as well fix this immediately in the spec: Nobody seems to think that it ...
3 years, 4 months ago (2017-08-18 15:26:01 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/2998073002/diff/60001/docs/language/dartLangSpec.tex File docs/language/dartLangSpec.tex (right): https://codereview.chromium.org/2998073002/diff/60001/docs/language/dartLangSpec.tex#newcode5947 docs/language/dartLangSpec.tex:5947: A for statement of the form \code{\FOR{} ($D$ ...
3 years, 4 months ago (2017-08-18 19:11:58 UTC) #4
eernst
Committed patchset #5 (id:80001) manually as 6ef388db9dc8f1a03187b56f0324697744e71aa3 (presubmit successful).
3 years, 4 months ago (2017-08-21 07:29:21 UTC) #6
eernst
3 years, 4 months ago (2017-08-21 14:20:44 UTC) #7
Message was sent while issue was closed.
Forgot to send review response before committing --- here we go.

https://codereview.chromium.org/2998073002/diff/60001/docs/language/dartLangS...
File docs/language/dartLangSpec.tex (right):

https://codereview.chromium.org/2998073002/diff/60001/docs/language/dartLangS...
docs/language/dartLangSpec.tex:5947: A for statement of the form \code{\FOR{}
($D$ $id$ \IN{} $e$) $s$} is equivalent to the following code:
On 2017/08/18 19:11:58, Lasse Reichstein Nielsen wrote:
> THANK you! That "pattern syntax in concrete code" category error deserved to
be
> fixed!

Acknowledged. ;-)

https://codereview.chromium.org/2998073002/diff/60001/docs/language/dartLangS...
docs/language/dartLangSpec.tex:5962: It follows that it is a static warning if
$D$ is omitted and $id$ is a final variable,
On 2017/08/18 19:11:58, Lasse Reichstein Nielsen wrote:
> D is omitted -> D is empty
> (maybe?)

I thought about that, too. Switched to `empty`, which seems better today.

Powered by Google App Engine
This is Rietveld 408576698