rfc:short_closures
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:short_closures [2015/05/01 19:16] – bwoebi | rfc:short_closures [2015/09/01 16:30] – bwoebi | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2015-05-01 | * Date: 2015-05-01 | ||
* Author: Bob Weinand, bobwei9@hotmail.com | * Author: Bob Weinand, bobwei9@hotmail.com | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 63: | Line 63: | ||
</ | </ | ||
- | Concrete syntax is (~> is right associative with lowest possible | + | Concrete syntax is (~> is right associative with lowest possible |
< | < | ||
( parameter_list ) ~> expression | ( parameter_list ) ~> expression | ||
Line 255: | Line 255: | ||
return [$x => $x * 2]; | return [$x => $x * 2]; | ||
</ | </ | ||
+ | |||
+ | Additionally, | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 270: | Line 272: | ||
private $bar: | private $bar: | ||
- | getBar ~> $this-> | + | getBar() ~> $this-> |
setBar($bar) ~> $this-> | setBar($bar) ~> $this-> | ||
} | } |
rfc/short_closures.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1