Erik Ernst
6ef388db9d
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
Review-Url: https://codereview.chromium.org/2998073002 .
2017-08-21 09:29:17 +02:00
Florian Loitsch
e6e8d35323
Newsletter 2017-08-18.
...
Review-Url: https://codereview.chromium.org/3001943002 .
2017-08-18 18:25:48 +02:00
Lasse R.H. Nielsen
2170830a9e
Specify that async functions start executing synchronously.
...
R=eernst@google.com
Review-Url: https://codereview.chromium.org/3000063002 .
2017-08-18 13:00:40 +02:00
Erik Ernst
6fc097670c
Added informal spec of optional const/new to docs/language/informal.
...
R=lrn@google.com
Review-Url: https://codereview.chromium.org/3000133002 .
2017-08-17 11:33:04 +02:00
Erik Ernst
8514557c5a
Removed permission to do voidExpression is T and .. is! T.
...
The informal spec of generalized void used to allow a `typeTest` on
an expression of type void. This CL removes that permission, thus
leaving only `as` as a narrow escape hatch from void, as decided at the
language team meeting on 2017-08-15.
R=lrn@google.com
Review-Url: https://codereview.chromium.org/3001063002 .
2017-08-17 11:31:31 +02:00
Kevin Moore
88706d8813
Tiny nit to 20170811 newsletter ( #30460 )
2017-08-16 11:37:01 -07:00
Florian Loitsch
1daab67666
Newsletter 2017-08-11
...
Review-Url: https://codereview.chromium.org/3000793002 .
2017-08-11 17:33:00 +02:00
Lasse Reichstein Holst Nielsen
e329e1ce29
Don't allow function values in assert tests.
...
Currently you can write
assert(() { ... });
and the function will be called and the return value used as the assert test.
This feature isn't really worth its own complexity - if you want to get the same effect, you can just write all the function:
assert(() { ... }());
With asserts in const initializer lists, where the function call is not possible anyway, the feature went from being not very useful to being actual an complication and exception for users to remember.
R=eernst@google.com , rnystrom@google.com
Review-Url: https://codereview.chromium.org/2974763002 .
2017-08-10 15:29:55 +02:00
Erik Ernst
db092ff2fc
Transferred the generalized void informal spec to docs/language/informal
...
R=lrn@google.com
Review-Url: https://codereview.chromium.org/2994003002 .
2017-08-09 16:30:59 +02:00
Florian Loitsch
d94cecba3c
Newsletter 2017-08-04.
...
Review-Url: https://codereview.chromium.org/2995543002 .
2017-08-04 19:06:10 +02:00
Florian Loitsch
941c07db5c
Add first newsletter.
...
Review-Url: https://codereview.chromium.org/2989963002 .
2017-07-28 21:31:00 +02:00
Erik Ernst
5904409d50
Added informal generic method syntax and generic function type specs.
...
R=lrn@google.com
Review-Url: https://codereview.chromium.org/2841483003 .
2017-07-14 13:17:30 +02:00
Erik Ernst
52e1372454
Fixes several typos as reported by Alexander Aprelev in
...
https://codereview.chromium.org/2844003002/ , plus other typos.
R=lrn@google.com
Review-Url: https://codereview.chromium.org/2975283002 .
2017-07-14 12:51:28 +02:00
Lasse R.H. Nielsen
a72f46def8
The actual change to the wording of assert that I intended in the previous CL.
...
R=eernst@google.com
Review-Url: https://codereview.chromium.org/2979523002 .
2017-07-11 11:52:21 +02:00
Lasse R.H. Nielsen
609d26a227
Add assert-in-initializer-list to formal specification.
...
Add tests for new syntax.
Not dart-formatted yet since the formatter doesn't accept the new syntax.
R=eernst@google.com , floitsch@google.com
Review-Url: https://codereview.chromium.org/2962153002 .
2017-07-10 13:59:38 +02:00
Florian Loitsch
4207a070f1
Fix indented ```.
2017-06-30 20:39:56 +02:00
Lasse R.H. Nielsen
aeacff4f2b
Add proposal for new mixin declaration syntax.
...
R=floitsch@google.com
Review-Url: https://codereview.chromium.org/2954653002 .
2017-06-30 14:16:57 +02:00
Lasse Reichstein Holst Nielsen
380461e61a
Improve wording of break/continue.
...
R=eernst@google.com , kmillikin@google.com
Review-Url: https://codereview.chromium.org/2963533002 .
2017-06-28 07:37:14 +02:00
Lasse Reichstein Holst Nielsen
82a97d8b46
Fix wording for break and continue.
...
Fixes #30011
BUG= http://dartbug.com/30011
R=eernst@google.com , paulberry@google.com
Review-Url: https://codereview.chromium.org/2961603002 .
2017-06-27 10:33:24 +02:00
Lasse R.H. Nielsen
c68e5cc67d
Allow trailing comma in assert statements.
...
Fixes #28786
BUG= http://dartbug.com/28786
R=floitsch@google.com
Review-Url: https://codereview.chromium.org/2953223002 .
2017-06-23 14:45:25 +02:00
Lasse R.H. Nielsen
52691c6937
Add informal specification for optional-new/const, constructor tearoffs.
...
R=floitsch@google.com
Status: under discussion
Review-Url: https://codereview.chromium.org/2929753003 .
2017-06-20 13:21:36 +02:00
Lasse R.H. Nielsen
c4da9198c1
Add informal specification of asserts in initializer lists.
...
R=floitsch@google.com
Review-Url: https://codereview.chromium.org/2927933002 .
2017-06-08 13:45:46 +02:00
Erik Ernst
0603b1872c
Fixed typo in spec.
...
R=floitsch@google.com
Review-Url: https://codereview.chromium.org/2916263003 .
2017-06-02 11:14:53 +02:00
Lasse R.H. Nielsen
13f3df7e0c
Change specification of main.
...
R=eernst@google.com , rnystrom@google.com
Review-Url: https://codereview.chromium.org/2852533003 .
2017-06-01 13:51:30 +02:00
Erik Ernst
539e463fe8
Removes spurious brace in dartLangSpec.tex
...
R=floitsch@google.com
Review-Url: https://codereview.chromium.org/2895263002 .
2017-05-22 16:50:24 +02:00
Lasse Reichstein Holst Nielsen
26d6e3596d
Make void-arrow-functions statically accept any expression type.
...
R=eernst@google.com
Review-Url: https://codereview.chromium.org/2873313003 .
2017-05-22 16:19:53 +02:00
Erik Ernst
3b5874a332
Adjusted initializer rules, changing a run-time error to compile-time.
...
R=lrn@google.com
Review-Url: https://codereview.chromium.org/2843733002 .
2017-05-19 14:22:35 +02:00
Peter von der Ahé
5e040f1abf
Add comment about metadata syntax problem in static methods.
...
R=johnniwinther@google.com
Review-Url: https://codereview.chromium.org/2882173002 .
2017-05-15 13:55:06 +02:00
Lasse R.H. Nielsen
122345e356
Specify that a void return type doesn't cause errors in checked mode.
...
R=eernst@google.com
Review-Url: https://codereview.chromium.org/2875643002 .
2017-05-11 14:17:57 +02:00
Peter von der Ahé
4880a2876e
Rewrite mixin application handling in Fasta.
...
R=johnniwinther@google.com
Review-Url: https://codereview.chromium.org/2862223002 .
2017-05-09 09:22:57 +02:00
Erik Ernst
ae1091805d
Fixed typo: "keyword parameter" changed to "named parameter".
...
Resolves https://github.com/dart-lang/sdk/issues/29464 .
R=lrn@google.com
Review-Url: https://codereview.chromium.org/2838853003 .
2017-04-26 16:11:59 +02:00
Erik Corry
2fb5d08102
Spelling a
...
R=ahe@google.com
BUG=
Review-Url: https://codereview.chromium.org/2841543002 .
2017-04-24 14:53:51 +02:00
Erik Corry
4b9bba55b4
Stoppp using trippple consonants
...
R=ahe@google.com
BUG=
Review-Url: https://codereview.chromium.org/2833073002 .
2017-04-21 17:50:13 +02:00
Lasse R.H. Nielsen
94b23d3b12
Fix text around least upper bound.
...
R=eernst@google.com
Review-Url: https://codereview.chromium.org/2802633002 .
2017-04-05 14:09:07 +02:00
Kevin Millikin
74c576911b
Ignore LaTeX output files in docs/language.
...
BUG=
R=eernst@google.com , zhivkag@google.com
Review-Url: https://codereview.chromium.org/2763393006 .
2017-03-24 15:45:15 +01:00
Erik Ernst
1e483f0bcc
Specification adjustments for covariant overrides in Dart 1.
...
Addresses the 1.50 bullet in sdk issue #28164 .
R=lrn@google.com
Review-Url: https://codereview.chromium.org/2678003002 .
2017-03-02 13:41:37 +01:00
Lasse R.H. Nielsen
6a77f268bb
Revert "Add bnf.sty to github, since it is referenced by the latex language spec file."
...
R=eernst@google.com
Review-Url: https://codereview.chromium.org/2723623003 .
2017-02-28 11:35:35 +01:00
Regis Crelier
3d4fce91e2
Add bnf.sty to github, since it is referenced by the latex language spec file.
...
R=gbracha@google.com
Review-Url: https://codereview.chromium.org/2705323003 .
2017-02-22 10:40:23 -08:00
Erik Ernst
5de9108c16
Adjusted spec to outlaw built-in identifiers in type annotations.
...
Addresses issue https://github.com/dart-lang/sdk/issues/28817 .
R=lrn@google.com
Review-Url: https://codereview.chromium.org/2704573004 .
2017-02-20 09:27:37 +01:00
Erik Ernst
170ba4aa32
Added covariant-from-class informal spec file for broader access.
...
Review-Url: https://codereview.chromium.org/2700533004 .
2017-02-16 13:11:15 +01:00
Lasse Reichstein Holst Nielsen
c41ae15713
Specify FutureOr.
...
R=eernst@google.com , floitsch@google.com
Review-Url: https://codereview.chromium.org/2664263002 .
2017-02-03 08:02:09 +01:00
Lasse R.H. Nielsen
ef31637857
Fix specification of multiline strings.
...
Now say that NEWLINE is one of CR, LF or CR+LF, and that all of these
contribute a single LF to the string value.
Fixes issue #14073
BUG= http://dartbug.com/14073
R=eernst@google.com , johnniwinther@google.com
Review-Url: https://codereview.chromium.org/2665613003 .
2017-01-31 10:26:01 +01:00
Lasse R.H. Nielsen
c77a4a92b2
Add changelog to dart spec file.
...
R=eernst@google.com , floitsch@google.com
Review-Url: https://codereview.chromium.org/2650693002 .
2017-01-23 14:00:28 +01:00
Lasse R.H. Nielsen
2f2508470b
Spec tweak. Fix semicolon escape-grammar where it doesn't match the rest.
...
R=floitsch@google.com
Review-Url: https://codereview.chromium.org/2638403006 .
2017-01-20 14:32:11 +01:00
Lasse R.H. Nielsen
fcff3fe4e7
Make it more explicit that Null doesn't extend anything but Object.
...
Fix dart.sty
Address new comments on https://codereview.chromium.org/2555343004/
R=eernst@google.com
Review-Url: https://codereview.chromium.org/2641873003 .
2017-01-20 09:03:43 +01:00
Bob Nystrom
13f71634b0
Informal proposal for covariant overrides. ( #28176 )
...
Added informal specification of covariant overrides.
It is available as a new file, docs/language/informal/covariant-overrides.md.
2017-01-19 06:22:54 -08:00
Lasse R.H. Nielsen
6904227a56
Fix bug in dart.sty.
...
R=floitsch@google.com
Review-Url: https://codereview.chromium.org/2644513003 .
2017-01-19 12:09:17 +01:00
Erik Ernst
473f2c9a60
Eliminated usages of "field" in the spec.
...
It turned out to be "instance variable" or "static or instance
variable" in all cases. I considered writing "member variable" for the
latter, but we would then need to introduce that phrase somewhere, and
maybe refer to it at each usage, which would be more verbose.
Fixes #24333 .
BUG=
R=lrn@google.com
Review-Url: https://codereview.chromium.org/2613293002 .
2017-01-09 11:29:01 +01:00
Erik Ernst
c63f8010df
Performed some keyword related clean-ups.
...
R=lrn@google.com
Review-Url: https://codereview.chromium.org/2609413006 .
2017-01-06 13:53:28 +01:00
Bob Nystrom
376b9a31c5
Add README for informal specs directory.
...
R=eernst@google.com , leafp@google.com
Review-Url: https://codereview.chromium.org/2596933002 .
2016-12-21 15:52:54 -08:00