ElbertF/Swiftlet — Issue #34: Make proper use of namespaces
Author: Naatan
Created: 2012-02-06 14:01:06+00:00
State: open

Hi, just stumbled upon your framework and am quite interested in using it for some smaller projects, the tiny footprint is very neat especially considering that it still manages to fulfil the basic needs of a framework.

One thing I don't like about it though is that you're not actually utilising namespaces, the only use you get out of them right now is that you will be able to easily embed your framework with other libraries or even other frameworks, but that's not a very feasible scenario to begin with.

You're still forcing users to use class names like "IndexController" whilst namespaces would allow you to just name it Index within the namespace Swiftlet\Controllers. Personally I would much favour this approach as I've never been a fan of mixing the namespace inside the class name, sure it works.. and it's easy with legacy IDE's.. but then what's the point of using namespaces to begin with.

Anyway, would love to hear what your thoughts are on this, looking forward to seeing where this framework might go.