[RFC] Property Accessors v1.2 : Interfaces

From: Date: Fri, 26 Oct 2012 10:42:32 +0000
Subject: [RFC] Property Accessors v1.2 : Interfaces
Groups: php.internals 
Request: Send a blank email to internals+get-63642@lists.php.net to get a copy of this message
I'm opening up several new threads to get discussion going on the remaining "being debated" categories referenced in this 1.1 -> 1.2 change spec: https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented/change-requests ------------------------------------------------------------------------ v1.1 fully allows accessors to be defined in interfaces and requires that those accessors be defined in implementing classes. Some people have suggested that a property defined by the class should also satisfy the requirement. *Arguments For* * From the outside observer of an interface, a class which defines a property has satisfied the requirement, because an interface only defines what must be allowed, not what cannot be done. *Arguments Against* * Additional overhead on interface checking, would only be allowed for a non-asymmetrical accessor * Would give userland developers the ability to write poor code as properties are non-observable (object would not know its property was changed) ------------------------------------------------------------------------ Thoughts? -- -Clint

« previous php.internals (#63642) next »