This is the mail archive of the
mailing list for the libstdc++ project.
Re: verbose terminate() on by default, pass 2
On Wed, Dec 25, 2002 at 10:06:53AM +0100, Gabriel Dos Reis wrote:
> Phil Edwards <firstname.lastname@example.org> writes:
> | I hadn't really planned on rewriting Jason's code... what specifically are
> | you disagreeing with?
> Nathan and I are talking about the fact that C++-STYLE emphasizes types
> and that V3 uses (mostly) the style from the C++ Standard.
> 01. Pointers and references
> char* p = "flop";
> char& c = *p;
> char *p = "flop"; // wrong
> char &c = *p; // wrong
Oh, that. I thought you were talking about something else.
I've never liked this rule. *shrug* Sure, I'll change that code.
> The style used on V3 is "const T*" not "T const *".
Which makes even less sense. The type can be read aloud right-to-left in
the second case ("pointer to a constant T"), but not in the first case.
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002