r/programming • • Jul 11 '15

PHP 7.0.0 Beta 1 Released

http://php.net/archive/2015.php#id2015-07-10-4
53 Upvotes

84 comments sorted by

View all comments

Show parent comments

4

u/mekanikal_keyboard Jul 12 '15

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.

-3

u/crankybadger Jul 12 '15

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.

The . is an obstacle way, way bigger.