I prefer #2. Remembers me the old Java mantra: "import your classes, not your package". The readability is better.
On Tue, Feb 1, 2011 at 2:39 PM, Jeremy Mikola <[email protected]> wrote: > I prefer #2, and I think it's very helpful example for developers that end > up making their own custom fields, and end up having their own Form > directory/namespace to contain them - in the #1 case "Form" would conflict, > so using explicit class names helps avoid the need to resort to "use as". > > On Tue, Feb 1, 2011 at 11:27 AM, Bernhard Schussek <[email protected]>wrote: > >> For the sake of writing the forms documentation and finding a good >> convention, I'd like to know which of the following styles you prefer: >> >> https://gist.github.com/806089 >> >> Both have their advantages and disadvantages. The advantage of a) is >> that it's shorter to write in the documentation and less work if you >> write use statements manually. The advantage of b) is that it is >> easier to read and most IDEs should automatically declare use >> statements at some point anyway. >> >> Please vote! >> >> Bernhard >> -- >> Software Architect & Engineer >> Blog: http://webmozarts.com >> Twitter: http://twitter.com/webmozart >> >> -- >> 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]<symfony-devs%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/symfony-devs?hl=en >> > > > > -- > jeremy mikola > > -- > 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]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- Blog: http://eriksencosta.wordpress.com Twitter: @eriksencosta -- 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
