PHP scoping is probably the most annoying. Having to do global $myVar all the time.
$ and -> really make the code ugly. I prefer . to ->.
$this-> is retarded. If it's not a local variable then it should check further up the scope to see if it's a class variable, or like ruby you can use @ or @@ to specify scope.
Why do I need to stick a $ in front of all variables? That's just pure laziness of the language designer not wanting to complicate the parser and forcing that burden onto the coder. If it's not already in the symbol table or it's not any language grammar then it must be a variable. Duh.
Sometimes you have to store something in a variable before you can access it as an array. You can't do gimmeaArray()[0]. You have to do:
$tempVar = gimmeArray();
echo $tempVar[0];
Functions are second-rate citizens in PHP. They can't be stored in variables and can't be passed as parameters.
It's just a pain to do a lot of things.
|