Honestly, designating . for string concatenation has to be the biggest mistake PHP has ever made.
Hardly. That pales next to one of the grandaddy mistakes: PHP still allows in-situ definitions of variables with default values with a corresponding declaration. This is why PHP cannot sanely deal with typo'd variable names.
This could be solved in a heart-beat by allowing declarations of variables like Perl supports, my $x, or even a more modern var $x and a strict mode that bitches like crazy if you don't declare before using.
4
u/mekanikal_keyboard Jul 12 '15
Hardly. That pales next to one of the grandaddy mistakes: PHP still allows in-situ definitions of variables with default values with a corresponding declaration. This is why PHP cannot sanely deal with typo'd variable names.