[Owncloud] namespacing

Victor Dubiniuk victor.dubiniuk at gmail.com
Sat Aug 11 11:37:34 UTC 2012


Hi,

On Thu, Jul 26, 2012 at 3:37 PM, Bart Visscher <bartv at thisnet.nl> wrote:

> On Wed, Jul 25, 2012 at 06:33:06PM +0200, Arthur Schiwon wrote:
> > A follow up on this.
> >
> > The suggestion was actually to use \OCA_appid\ as namespace, what i
> > did was to support the pattern \OCA\appid\ in the autoloader.
> >
> > The first pattern is e.g. used in the app files_version
> >
> > namespace OCA_Versions;
> > class Hooks { .. }
> >
> > Having two different approaches is of course bad style and should be
> > avoided. Frank and I wonder now, what the better and more intuitive
> > way is: \OCA_appid\ or \OCA\appid\
> >
> > Thoughts, opinions?
>
> \OCA\appid\ cleaner and simpler to parse
>
> Bart
>
>
\OCA\appid\ is actually a nested namespace, but I agree that it is cleaner.

--
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20120811/f890cae0/attachment.html>


More information about the Owncloud mailing list