Jay Pipes wrote:

>>> namespace Drizzled::Serialize
>> I agree... although I'm not sure why the dir is all lower case and the
>> namespaces are either partially or fully capitalized.
> 
> No dogmatism on my part.  As long as we're consistent about one way or
> the other, that's all that matters to me :)

Same here.

>> BUT...
>>
>> I fully, fully, fully agree about the use of namespaces.
> 
> OK, great!  Now, are the namespaces I've suggested workable?  As Roy
> pointed out to me in a separate email, I've arranged
> namespaces/directories via logical structures.  Is there a better way to
> organize things?  Should we put everything in a single directory?

No, I think breaking it up is nice. We don't _have_ to do dir per
namespace, but I think it's a nice mirroring...

>>> I think that moving to such a directory structure and namespace
>>> organization will be helpful for developers to better organize code (in
>>> their heads) and also may help if certain functionality will eventually
>>> be made into a stand-alone library (for instance /drizzled/parser/
>>> ->libdrizzleparse)

I agree re: breaking things up into libs. Also, we can make things into
little libtool conv. libs like we're doing with field, etc. now. If all
of the drizzled::field stuff is in /drizzled/field and gets compiled to
libdrizzlefield.la, then it's easy to know where to look for stuff. I'm
not dogmatic about it - but at the same time, I'm not sure there's any
good excuse to not follow the convention once we decide on it.

One of the tasks Python took on in Python 3.0 was a normalization and
re-org of the standard lib. I think it's a worthwhile endeavor... and
one that will serve us well here.

FWIW, I started playing with namespacing drizzled::field the other day.
(wanted to try to get rid of fstring and fdecimal and use
drizzled::field::string and drizzled::field::decimal.) It was working
out, but won't be a very quick change. On the other hand, I think it
will let us shorten some names, because right now we're doing things
like Field_decimal, which is a very pure-C way of faking namespaces.

Just my €0.02.

Monty

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to