This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ bootstrap (part 7/n): Rename `class' to `cl' everywhere.


Nathan Sidwell wrote:
> Bernardo Innocenti wrote:
> 
>>Ranjit Mathew wrote:
>>
>>
>>>Bernardo Innocenti wrote:
>>>
>>>
>>>>I've seen the `cl' abbreviation already used elsewhere in GCC (for
>>>>instance tree-outof-ssa.c and tree-ssa-live.c).  It's quite customary
>>>>also in other projects.
>>>>
>>>>Would `cls' sound better to you?
>>>
>>>libjava uses "klass" in a lot of places - how about that?
> 
> klass is used in cp, and clas is used in java.  klass is good for me.

 $ cd gcc-HEAD
 $ egrep '\<cl\>' . | wc -l
 332
 $ egrep -r '\<cl\>' . | wc -l
 760
 egrep -r '\<cls\>' . | wc -l
 30
 $ egrep -r '\<klass\>' . | wc -l
 44

My personal favourite is 'cl', which also happens to be the
most popular.  'cls' would be my second choice.

If we decide to set a standard naming style, we'd better
update all of the codebase, not just the few occurrences
that I introduced.

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]