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

2015-04-30 Thread Rowan Collins
Florian Margaine wrote on 30/04/2015 10:23: > > 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? Actually, soft reservation has genuine advantages for those: 1) It

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

2015-04-30 Thread François Laupretre
> De : Florian Margaine [mailto:flor...@margaine.com] > > Should we throw fatal errors for functions starting with 2 underscores too? Well, you're right. Functions and methods, even if more people now know that these names are reserved. Regards François -- PHP Internals - PHP Runtime Develop

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

2015-04-30 Thread Florian Margaine
Hi, Le 30 avr. 2015 11:04, "François Laupretre" a écrit : > > > De : Christoph Becker [mailto:cmbecke...@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 wit

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

2015-04-30 Thread Maciek Sokolewicz
On 30-4-2015 11:03, François Laupretre wrote: De : Christoph Becker [mailto:cmbecke...@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).

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

2015-04-30 Thread François Laupretre
> De : Christoph Becker [mailto:cmbecke...@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 enf

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

2015-04-29 Thread Ángel González
On 30/04/15 00:41, Christoph Becker wrote: Hi everybody! I've noticed that the "Reserve Even More Types in PHP 7" RFC[1] has been moved to "Process and Policy" with the comment "needs no impl". However, the RFC states: | This RFC does not fully reserve them as keywords; it only prohibits | thei

[PHP-DEV] Reserve even more type hints RFC

2015-04-29 Thread Christoph Becker
Hi everybody! I've noticed that the "Reserve Even More Types in PHP 7" RFC[1] has been moved to "Process and Policy" with the comment "needs no impl". However, the RFC states: | This RFC does not fully reserve them as keywords; it only prohibits | their usage as class, interface and trait names.