2013/2/19 Marcello Duarte <[email protected]>:
> Inspired by Sara, here is another RFC, I finally got around to draft:
>
> https://wiki.php.net/rfc/short-syntax-for-anonymous-function
>
> Please feedback,
> --
> Marcello Duarte
BC break detected:
<?php
{
echo "foo\n";
return "bar";
};
echo "baz\n";
return 42;
?>
The {} would probably be a closure that is not assigned to anything
while the current behaviour is to print "foo" and exit while returning
"bar".
-1 since it only saves 10 chars ("function()") without real added value.