From 2a70cb1f5b9724e4e859970c040e8b5f79381f5b Mon Sep 17 00:00:00 2001 From: Larry Garfield Date: Fri, 8 Jul 2022 16:58:47 -0500 Subject: [PATCH] Add First Class Closure rules. --- spec.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec.md b/spec.md index 5273245..bc4b7ea 100644 --- a/spec.md +++ b/spec.md @@ -724,6 +724,12 @@ $someInstance ->run(); ``` +### 4.8 Function Callable References + +A function or method may be referenced in a way that creates a closure out of it, by providing `...` in place of arguments. + +If so, the `...` MUST NOT include any whitespace before or after. That is, the correct format is `foo(...)`. + ## 5. Control Structures The general style rules for control structures are as follows: