Article View: comp.std.c++
Article #706Re: Exponentiation operator proposal
From: Scott Meyers
Date: Thu, 15 Oct 1992 03:02
Date: Thu, 15 Oct 1992 03:02
19 lines
1386 bytes
1386 bytes
In article <1992Oct14.225725.16486@microsoft.com> jimad@microsoft.com (Jim Adcock) writes: | I just ran a quick measurement on a convenient sample of 85,000 lines of | C and C++ code. Based on this sample "**" appears on average about once | per every 200 lines of code. This is a pretty high occurance. For comparison | "^" [XOR] appears on average once per 3000 lines of code! How many of these are in declarations versus in expressions? After all, "&" already has different semantics depending on whether it's in a declaration or an expression. If we could do the same thing with "**", it would improve the language considerably, because one of the biggest drawbacks to C++ as it currently stands is that it's too easy to understand. :-) Scott ------------------------------------------------------------------------------- What do you say to a convicted felon in Providence? "Hello, Mr. Mayor."
Technical Details
Message-ID:
<1992Oct15.030229.11826@cs.brown.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!brunix!brunix!sdmReferences:
<BuJJxs.8Hx@world.std.com> <23663@alice.att.com> <1992Oct14.225725.16486@microsoft.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++,comp.lang.c++ Path: arc1-ca.pugleaf.net!sparky!uunet!brunix!brunix!sdm From: sdm@cs.brown.edu (Scott Meyers) Subject: Re: Exponentiation operator proposal Message-ID: <1992Oct15.030229.11826@cs.brown.edu> Sender: news@cs.brown.edu Organization: Brown University Department of Computer Science References: <BuJJxs.8Hx@world.std.com> <23663@alice.att.com> <1992Oct14.225725.16486@microsoft.com> Date: Thu, 15 Oct 1992 03:02:29 GMT Lines: 19