On 26.05.2011 14:36, Fabien Potencier wrote: > On 5/26/11 1:11 PM, Benjamin Eberlei wrote: >> My idea was to not throw exceptions on annotations that dont contain a >> namespace. >> >> i.e. @Orm\foo <- throw @foo <- dont throw. >> >> But johanness argued this is annoying with regard to helping developers >> find mistakes in their annotations, >> for example the MVC Extra annotations are probably imported with their >> classnameonly (without namespace). >> >> I still think its the best approach though. > > And what about forcing usage of () at the end. Seems to be > straightforward and fixes most issues.
I really liked this at first, but then after thinking about ti for a while, it means that if one day we'd have a standard annotation feature, we couldn't build on existing annotations, a documentation parser couldn't use our reader because it wouldn't support docblocks, people would have to use @var(int) and such.. And that sounds a bit bad to me. Cheers -- Jordi Boggiano @seldaek - http://nelm.io/jordi -- 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
