Skip to content

Commit 569a627

Browse files
author
hydroper
committed
Syntax update
1 parent 3acb61b commit 569a627

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/new-syntax.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ Function bodies may consist of an expression, in which case, either:
262262
const f = function(): Number (10)
263263
```
264264

265+
Recommendation: for function definitions consisting of an expression body, it is recommended to use a semicolon to prevent ambiguity with meta-data treated as brackets operators.
266+
265267
## Numeric Literal
266268

267269
* Binary literal

0 commit comments

Comments
 (0)