Hi,

maybe you guys are tired of namespace and G*** discussions, so I'd like to
announce some ideas and toughts about the PDM notes:

> 2.13 Case sensitivity of identifiers

Maybe this could throw some E_STRICT deprecated warning and PHP7 goes
completely case sensitive.

> 5.7 Using an undefined property in a class with defined
> properties should
> throw a warning

> Conclusions:
> 
>    1. We will not start throwing any notice for this.

Here I see some inconsistency. As of PHP5 static and const where introduced
into the class model. Accessing undefined static class variables or class
constants is E_FATAL. I thought accessing undefined properties in PHP5 is
for some BC. In PHP6 IMHO this should be consistent for static, const and
"normal" properties. If someone likes to set and get undefined properties he
can make use of overload/interceptors.

Some more argument is that the new OOP features allow us to delevop more
strictly (interfaces, type hints, abstract, final etc.). All this features
are only helpers for us and we could live without them if we were perfect,
but we aren't and as of that fact I personally like strict programming PHP5,
using type hints, interfaces, assert() etc. (and being E_FATAL'ed).


Just my two cent - for the other points: +1 :)

Best regrards.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to