rfc:closure_self_reference
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:closure_self_reference [2023/06/03 19:23] – danack | rfc:closure_self_reference [2023/06/03 21:00] – typo. danack | ||
---|---|---|---|
Line 105: | Line 105: | ||
<code php> | <code php> | ||
- | $fibonacci = function $fn(int $n) as $fn { | + | $fibonacci = function $fn(int $n) { |
if ($n === 0) return 0; | if ($n === 0) return 0; | ||
if ($n === 1) return 1; | if ($n === 1) return 1; | ||
Line 147: | Line 147: | ||
- | ===== Syntax choice ===== | + | ===== Syntax choice |
Of the syntaxes considered, the following syntaxes are excluded for the reasons listed: | Of the syntaxes considered, the following syntaxes are excluded for the reasons listed: |
rfc/closure_self_reference.txt · Last modified: 2023/06/03 21:01 by danack