RE: [PHP-DEV] Reserve even more type hints RFC

From: Date: Thu, 30 Apr 2015 09:23:08 +0000
Subject: RE: [PHP-DEV] Reserve even more type hints RFC
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-86085@lists.php.net to get a copy of this message
Hi, Le 30 avr. 2015 11:04, "François Laupretre" <francois@php.net> a écrit : > > > De : Christoph Becker [mailto:cmbecker69@gmx.de] > > > > Relying on documentation only seems to be insufficient to me. Consider > > a developer not reading the documentation and facing the issue that > > his/her code might break with PHP 7.1 (i.e. a minor version). > > +1. I already asked if we should enforce reserved names by a message and most replied that documentation was enough. This is the lazy (I could say 'political') option and can only lead to bad surprises when we decide to use the names. At this time, saying "People should have read the doc" won't help them in any way, especially if their code dates back from before 7.0, when this doc didn't exist yet. > > We don't need a warning there, we need a fatal error. These names are *invalid* as class names. Should we throw fatal errors for functions starting with 2 underscores too? > > Regards > > François > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Cheers, Florian Margaine

« previous php.internals (#86085) next »