Skip to content

Commit 2a70cb1

Browse files
committed
Add First Class Closure rules.
1 parent 0774582 commit 2a70cb1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,12 @@ $someInstance
724724
->run();
725725
```
726726

727+
### 4.8 Function Callable References
728+
729+
A function or method may be referenced in a way that creates a closure out of it, by providing `...` in place of arguments.
730+
731+
If so, the `...` MUST NOT include any whitespace before or after. That is, the correct format is `foo(...)`.
732+
727733
## 5. Control Structures
728734

729735
The general style rules for control structures are as follows:

0 commit comments

Comments
 (0)