On 7/10/10 5:33 AM, Michael wrote:
I see that Symfony2 has for the most part adopted the PEAR / ZF coding
standards.  Is there any plan to adopt the leading underscore for
protected and private class properties and methods (e.g.
$_protectedVariable)?  Whether or not you like leading underscores,
without adopting this important and differentiating aspect of the
PEAR / ZF coding standards, Symfony2 is still creating its own unique
coding standard.

Yes, we are trying to be more like Zend/PEAR2 for better interoperability. For instance, if you work with both Symfony2 and Zend Framework, having to switch from 2 spaces to 4 in any IDE is really annoying (the same goes for the bracket positions). But the _ notation for properties/methods is a totally different story as it does not change the way your work with the code in an IDE. Also, it does not make any sense to me (as PHP5 has built-in visibility support). Finally, I hope ZF will drop this convention for ZF2.

Fabien

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to