http://php.net/manual/en/function.echo.php echo is not actually a function (it is a language construct), so you are not required to use parentheses with it. echo (unlike some other language constructs) does not behave like a function, so it cannot always be used in the context of a function. Additionally, if you want to pass more than one parameter to echo, the parameters must not be enclosed within parentheses.
Did they specially crafted that to allow some idiot to call any function based on user-input or Intel paid them, so that efficient compilation wont be possible?
>>12
They did it because they are idiots and couldn't figure out how to support function references.
Name:
Anonymous2013-03-21 16:41
http://en.wikipedia.org/wiki/PHP#Functions True anonymous functions are supported using the following syntax:
function($y) use ($x) {
Wut? Isn't the whole point of lexical closures is to automate variable capture process?
At least AWK has a perfectly sane printf() function as well.
Its print statement is a convenience feature, since it is often used to write one-liners.
Name:
Anonymous2013-03-22 0:34
In fact, considering all these "CoffeeScripts", even Java looks not so bad. Yes, Java is verbose and inflexible, but Java has solid scoping rules, which save a lot of time and money, you spend debugging the CoffeeScript vomit.
$php -r "$a = false; var_export(shuffle($a));"
[22-Mar-2013 18:05:10] PHP Warning: shuffle() expects parameter 1 to be array, boolean given in Command line code on line 1
false
$php -r "$a = 1.337; var_export(shuffle($a));"
[22-Mar-2013 18:05:19] PHP Warning: shuffle() expects parameter 1 to be array, double given in Command line code on line 1
false
Name:
Anonymous2013-03-22 1:56
>>31
That is even worse. Why won't it produce error and stop the server, before more damage is done?