[TYPO3-core] Suggestion about use statement

Markus Klein klein.t3 at mfc-linz.at
Thu Feb 6 16:35:37 CET 2014


> Hi,
> On 6-2-2014 10:31, Markus Klein wrote:
> > Therefore I propose to use the 'use' EVERYWHERE and ALWAYS in ALL
> branches.
> -1 : it gets rather cluttered at the top with too many 'use' statements if it
> were used for each and every called class.

Most classes do only use 3 or so. Even the bigger ones do not use more than 6 to 10.
This is IMHO not a problem and gives a good overview.

> Backporting is not straightforward all the time, but if you test the backports it
> will easily be spotted (or use some tools to spot these errors).

I agree that tools do help of course, but it would have saved a lot of time already
for all those (many) straight patches for 6.x where the only changes necessary
for the backports was to add the namespace.

> --
> Jigal van Hemert
> TYPO3 CMS Active Contributor
> TYPO3 .... inspiring people to share!
> Get involved: typo3.org

Kind regards

Markus Klein
TYPO3 CMS Active Contributors Team Member

More information about the TYPO3-team-core mailing list