Hi Sam,

Am 05.12.2007 um 14:51 schrieb Sam Barrow:

Autoload would work exactly the same with namespaces, just do a
str_replace and replace "::" with "_".

hmm, and what about this (please correct me if I'm wrong):

<?php
namespace T3::MyPackage::Controller;

class Special extends Default {
}
?>

<?php
namespace T3::OtherPackage::Controller;

class Fancy extends Default {
}
?>

A search & replace of "Default" would replace both, T3::MyPackage::Controller::Default
and T3::OtherPackage::Controller::Default - but they are not the same.
The only way to refactor this would be by the help of a semantic-aware
tool.

Anyway, I'm not against namespaces but the way they are planned to be
implemented currently I'm not really excited about them either.

robert
--
http://typo3.org/gimmefive
http://buzz.typo3.org/people/robert-lemke/

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to