public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Wesley W. Terpstra" <terpstra@ito.tu-darmstadt.de>
To: Gabriel Dos Reis <gdr@integrable-solutions.net>
Cc: Mark Mielke <mark@mark.mielke.cc>, gcc@gcc.gnu.org
Subject: Re: Warnings for unhandled c++ exceptions?
Date: Mon, 03 Feb 2003 19:37:00 -0000	[thread overview]
Message-ID: <20030203193700.GA27781@ito.tu-darmstadt.de> (raw)
In-Reply-To: <m3y94xp3en.fsf@uniton.integrable-solutions.net>

On Mon, Feb 03, 2003 at 08:31:12PM +0100, Gabriel Dos Reis wrote:
> "Wesley W. Terpstra" <terpstra@ito.tu-darmstadt.de> writes:
> 
> | There are lots of warnings for behaviours that are *legal* C++ but
> | unethical. 
> 
> These words ("legal", "unethical") sound wrong to me.  Right now
> you're the first person using them in this discussion.  I don't know
> why... 

Because I was reading the C++ FAQ LITE yesterday. :-)
I thought his definitions were apt.
They are strong words though; maybe I should drop them.

What the FAQ meant with them is:
	legal = syntactically correct and valid C++
	        that also won't segfault, break, etc
	unethical = code that is fragile with respect to aging

eg:	if (x = y) { ... } is legal code
but, unethical

I will stop using them; I thought that perhaps their use was more widespread
than that fellows page. Plus -- there are terse and (with the above
definitions) precise.

---
Wes

  reply	other threads:[~2003-02-03 19:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-03 13:13 Wesley W. Terpstra
2003-02-03 17:07 ` Joe Buck
2003-02-03 19:13 ` Mark Mielke
2003-02-03 19:24   ` Wesley W. Terpstra
2003-02-03 19:31     ` Gabriel Dos Reis
2003-02-03 19:37       ` Wesley W. Terpstra [this message]
2003-02-03 19:45         ` Phil Edwards
2003-02-03 20:08           ` Gabriel Dos Reis
2003-02-03 20:14             ` Phil Edwards
2003-02-03 20:15               ` Gabriel Dos Reis
2003-02-03 20:45                 ` Andreas Schwab
2003-02-03 15:24 Bonzini
2003-02-03 16:45 ` Wesley W. Terpstra
2003-02-03 18:13   ` Alexandre Oliva
2003-02-03 18:17     ` Gabriel Dos Reis
2003-02-03 19:14 Wesley W. Terpstra
2003-02-03 19:16 Wesley W. Terpstra
2003-02-03 19:39 Chris Lattner
2003-02-03 19:47 ` Wesley W. Terpstra
2003-02-03 20:12   ` Gabriel Dos Reis
2003-02-03 21:25 Robert Dewar
2003-02-03 21:37 Robert Dewar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030203193700.GA27781@ito.tu-darmstadt.de \
    --to=terpstra@ito.tu-darmstadt.de \
    --cc=gcc@gcc.gnu.org \
    --cc=gdr@integrable-solutions.net \
    --cc=mark@mark.mielke.cc \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).