Re: [Suggestion]model naming convention

Jamal Hadi Salim <[email protected]>
Newsgroups gmane.ietf.forces
Organization ZNYX Networks
Message-ID <1161019220.5131.61.camel@jzny2>
On Mon, 2006-16-10 at 20:50 +0800, Jia Fenggen wrote:
> In the current model,an LFB is written without an clearly naming 
> conventions,the LFB name and element name are always begin with uppercase 
> an all kinds of  datatypedefs also begin with uppercase,should we define an 
> naming convention to formal the naming of various names.

I think this would help for consistency.

> I suggest 
> following:
> 1 All data types defined using datatypedef by user should have a name begin 
> with uppercase character,inside an complex data types,each element name 
> should begin with lowercase character;
> 2 The attributes capabilities and events element names of should begin with 
> lowercase character.  
> an general rule is that if the element is to be referenced by others,it 
> should begin with uppercase characters,else lowercase is used.An i suppose 
> the user don't directly use the simple types,he should define it's own 
> types before use them.
> that maybe not complete,what do you think?

So what happens when i have averylongnamehere? 
I hate hungarian naming notation, so anything else would be fine.
Generally i think the proposal to have formal rules is a good one.

cheers,
jamal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.