rfc:short-syntax-for-anonymous-function
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:short-syntax-for-anonymous-function [2013/02/19 13:10] – md | rfc:short-syntax-for-anonymous-function [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 41: | Line 41: | ||
==== Adding variables to the function scope ==== | ==== Adding variables to the function scope ==== | ||
+ | |||
+ | <code php> | ||
+ | <?php | ||
setFormattingStrategy({$string use $filter => | setFormattingStrategy({$string use $filter => | ||
Line 46: | Line 49: | ||
}); | }); | ||
+ | </ | ||
===== What is common use cases in other language ===== | ===== What is common use cases in other language ===== | ||
==== Building domain specific languages ==== | ==== Building domain specific languages ==== | ||
Line 58: | Line 62: | ||
function it($testName, | function it($testName, | ||
- | print(" | + | print(" |
$test(); | $test(); | ||
} | } |
rfc/short-syntax-for-anonymous-function.1361279442.txt.gz · Last modified: 2017/09/22 13:28 (external edit)