www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Package/Module naming standards

reply Marco A <Marco_member pathlink.com> writes:
Any naming standards? (besides lowercase)

For example why didn't Stewart Gordan just use "swdf.commondialog" instead of
"smjg.libs.sdwf.commondialog"?   I doubt there would be much namespace conflict
with "swdf". (maybe I should download it to see :)

I hope D doesn't adopt that whole Java naming mess with company-names etc.
Jun 03 2004
next sibling parent Stewart Gordon <smjg_1998 yahoo.com> writes:
Marco A wrote:

 Any naming standards? (besides lowercase)

Probably not.
 For example why didn't Stewart Gordan just use "swdf.commondialog" instead of
 "smjg.libs.sdwf.commondialog"?   I doubt there would be much namespace conflict
 with "swdf". (maybe I should download it to see :)

Partly because it's called SDWF, not SWDF. Secondly because it just seemed sensible to create a hierarchical system for my packages. I've found it useful for my applications as well, hence smjg.libs and smjg.apps. Stewart. -- My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment. Please keep replies on the 'group where everyone may benefit.
Jun 04 2004
prev sibling parent DemmeGod <me demmegod.com> writes:
On Thu, 03 Jun 2004 19:56:21 +0000, Marco A wrote:

 Any naming standards? (besides lowercase)
 
 For example why didn't Stewart Gordan just use "swdf.commondialog" instead
 of "smjg.libs.sdwf.commondialog"?   I doubt there would be much namespace
 conflict with "swdf". (maybe I should download it to see :)
 
 I hope D doesn't adopt that whole Java naming mess with company-names etc.

I rather like the java convention- the domain backwards. It prevents namespace conflicts. I'm using the package com.demmegod for my D libs (not that I've written a hell of a lot... yet) The problem I have with the java conventions is when it's violated- especially with sun and their sun packages. Where's the mess with the convention?
Jun 04 2004