From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10ad19,23963231b5359f74 X-Google-Attributes: gid10ad19,public X-Google-Thread: 107a89,23963231b5359f74 X-Google-Attributes: gid107a89,public X-Google-Thread: 10a146,23963231b5359f74 X-Google-Attributes: gid10a146,public X-Google-Thread: 1073c2,23963231b5359f74 X-Google-Attributes: gid1073c2,public X-Google-Thread: 101deb,23963231b5359f74 X-Google-Attributes: gid101deb,public X-Google-Thread: 103376,23963231b5359f74 X-Google-Attributes: gid103376,public X-Google-Thread: 11440e,23963231b5359f74 X-Google-Attributes: gid11440e,public X-Google-ArrivalTime: 2001-06-05 15:22:39 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!feed.cgocable.net!news.infoave.net!news3.infoave.net!not-for-mail From: Chris Uzdavinis Newsgroups: comp.lang.ruby,comp.lang.ada,comp.lang.awk,comp.lang.clarion,comp.lang.java.programmer,comp.lang.pl1,comp.lang.vrml Subject: Re: Long names are doom ? Date: 05 Jun 2001 18:22:30 -0400 Organization: Automated Trading Desk, Inc. Sender: chris@explicit.atdesk.com Message-ID: References: <3B0DBD4A.82943473@my-deja.net> <3B0DD011.88FCD00E@acm.org> <83WP6.3874$yc6.728572@news.xtra.co.nz> <3B1411D0.3AAF42E7@ftw.rsc.raytheon.com> <9f2nks$ibd$0@dosa.alt.net> <3B177EF7.2A2470F4@facilnet.es> <9f8b7b$h0e$1@nh.pace.co.uk> <9f8r0i$lu3$1@nh.pace.co.uk> NNTP-Posting-Host: host63.atdesk.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news3.infoave.net 991779755 346546 204.130.247.63 (5 Jun 2001 22:22:35 GMT) X-Complaints-To: abuse@infoave.net NNTP-Posting-Date: Tue, 5 Jun 2001 22:22:35 +0000 (UTC) User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.5 Xref: archiver1.google.com comp.lang.ruby:10409 comp.lang.ada:8201 comp.lang.awk:2798 comp.lang.clarion:21163 comp.lang.java.programmer:73876 comp.lang.pl1:790 comp.lang.vrml:3528 Date: 2001-06-05T18:22:30-04:00 List-Id: Pete Thompson writes: > On Sat, 2 Jun 2001 17:29:04 +1200, "AG" wrote: > In most C/C++ code, I very rarely ever see anyone using an > underscore in a variable name. When they do, they usually come from > a Pascal background. Sorry, I must disagree with your generalization. Using underscores has strong C++ roots -- their use is common in the C++ standard itself. Most names in the C++ Standard library uses underscores as separators when one is needed (random_shuffle, const_iterator, next_permutation, type_name, etc.) Even keywords in C++ use underscores: dynamic_cast, const_cast, static_cast, reinterpret_cast, wchar_t. The GNU coding standard uses underscores in identifiers. (For that matter, The Linux kernel itself is coded using underscore notation.) Plus, every platform-specific extension by any C++ compiler vendor is required to have leading underscores (__declspec, __finally, __int64, etc), and all implementations of the standard library internally use leading underscores, since the standard explicitly reserves such names (in global scope) for their use. It's common among Unix programmers to use trailing underscores on variable names to indicate class membership. In windows, it's common to prefix member variables with m_ to indicate class membership. -- Chris