dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.12k stars 1.57k forks source link

Spec oversights 1 #65

Closed DartBot closed 9 years ago

DartBot commented 12 years ago

This issue was originally filed by edsr...@gmail.com


I noticed these minor issues while reading through the spec.

Section 6.2 The formalParameterList grammar is missing a quote around the comma.

Section 7.1.2 The list of operators which must have 1 formal parameter mentions "?", but does not mention "/". I suspect somebody was accidentally pressing shift.

The last paragraph on page 15 does not mention "/" or "?" as an allowed user-defined operator.

Section 10.27 incrementOperator grammar has "–" (an en dash) when it's probably supposed to be "--"

Section 14.1.1 "is" is not listed as a reserved word. This might be intentional since it is listed as a built-in identifier in section 10.29, but for all practical purposes it seems to be a reserved word.

For example, I can't create a variable named "is", while I can create one named "class".

DartBot commented 12 years ago

This comment was originally written by drfibonacci@google.com


Set owner to @gbracha. Added Area-Language, Triaged labels.

gbracha commented 12 years ago

The typos are now fixed and will materialize in the next rev of the spec, which won't be long.

As for what "is" is (to quite Bill Gates): it is not a reserved word; if the implementation doesn't allow it, please file a bug.


Added Done label. Changed the title to: "Spec oversights 1".