Skip to content

Commit 83a165c

Browse files
committed
Add First Class Closure rules.
1 parent b5cac84 commit 83a165c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec.md

+7
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,13 @@ $foo->bar(
10471047
);
10481048
```
10491049

1050+
### 7.1 Function callable references
1051+
1052+
A function may be referenced in a way that creates a closure out of it, by providing `...` in place of arguments.
1053+
1054+
If so, the `...` MUST NOT include any whitespace before or after. That is, the correct format is `foo(...)`.
1055+
1056+
10501057
## 8. Anonymous Classes
10511058

10521059
Anonymous Classes MUST follow the same guidelines and principles as closures

0 commit comments

Comments
 (0)