Skip to content

Commit bf4383d

Browse files
committed
Object literals now supported
1 parent 5ed42d9 commit bf4383d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/language.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ See also [issue #51](https://github.com/Microsoft/pxt/issues/51).
6363
* method-like properties (get/set accessors)
6464
* basic generic classes, methods, and functions
6565
* class inheritance
66+
* object literals `{ foo: 1, bar: "two" }`
6667

6768
## Unsupported language features
6869

@@ -71,13 +72,12 @@ We generally stay away from the more dynamic parts of JavaScript.
7172
Things you may miss and we may implement:
7273

7374
* exceptions (`throw`, `try ... catch`, `try ... finally`)
74-
* object literals `{ foo: 1, bar: "two" }`
7575
* classes implementing interfaces
7676
* using generic functions as values
7777
* nested generic functions
7878
* class inheritance for generic classes and methods
7979
* initializers for class fields
80-
* `public`/`private` annotations on constructor arguments
80+
* `public`/`private` annotations on constructor arguments (syntactic sugar to make them into fields)
8181

8282
For JS-only targets we may implement the following:
8383

0 commit comments

Comments
 (0)