From 4a5e75e36c829f95163e2da134b1f76ef30ce76e Mon Sep 17 00:00:00 2001 From: Robbie Speed Date: Wed, 1 Mar 2023 21:41:59 -0400 Subject: [PATCH 1/2] Update README to allow exports before export Based on consensus of #69 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 395768e..cacf99b 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ Finally, static fields are executed and applied. This decorators proposal uses the syntax of the previous Stage 2 decorators proposal. This means that: - Decorator expressions are restricted to a chain of variables, property access with `.` but not `[]`, and calls `()`. To use an arbitrary expression as a decorator, `@(expression)` is an escape hatch. - Class expressions may be decorated, not just class declarations. -- Class decorators come after `export` and `default`. +- Class decorators may exclusively come before `export` or after `export [default]`. There is no special syntax for defining decorators; any function can be applied as a decorator. From 2bfa62a0b454c6f0cca91ee57c83722e2acb1d8c Mon Sep 17 00:00:00 2001 From: Robbie Speed Date: Wed, 1 Mar 2023 23:40:30 -0400 Subject: [PATCH 2/2] remove square brackets for optional default keyword Co-authored-by: Jordan Harband --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cacf99b..19de2d2 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ Finally, static fields are executed and applied. This decorators proposal uses the syntax of the previous Stage 2 decorators proposal. This means that: - Decorator expressions are restricted to a chain of variables, property access with `.` but not `[]`, and calls `()`. To use an arbitrary expression as a decorator, `@(expression)` is an escape hatch. - Class expressions may be decorated, not just class declarations. -- Class decorators may exclusively come before `export` or after `export [default]`. +- Class decorators may exclusively come before, or after, `export`/`export default`. There is no special syntax for defining decorators; any function can be applied as a decorator.