A language that uses archaic syntax with dollar vars, semicolons, is pretty verbose itself may die before it evolves into something sensible. Not that I believe PHP will die any time soon, but just replying to your "slow is good".
Careful there :-) Modern javascript has semicolons and is introducing pretty horrendous syntax for private variables (an octothorpe) and possibly for the pipe operator (percent sign, was it?) and for tuples and records, yet is showing no signs of dying.
function go() {
return
5 + 3;
}
console.log(go())
Since semicolons are optional, it's treating "return" as its own statement and "5 + 3" as a separate one.There are no hidden gotchas like this in PHP though since semicolons are always used:
function go() {
return
5 + 3;
}
var_dump(go());
This will return int(8).