From: Gianni Mariani <gmariani@chaincast.com>
To: Robert Dewar <dewar@gnat.com>
Cc: gcc@gcc.gnu.org
Subject: Re: c++ "with" keyword
Date: Sat, 04 Jan 2003 18:47:00 -0000 [thread overview]
Message-ID: <3E1729A7.2030201@chaincast.com> (raw)
In-Reply-To: <20030104181001.82011F2A5C@nile.gnat.com>
Robert Dewar wrote:
>>I think you missed the point.
>>
>>The fact that this can happen - even if you make it illegal, means more
>>maintenance. Using it from libraries also means that simply adding a
>>member to a library could cause untold number of users to that library
>>have compilation errors.
>>
>>Besides, this was a "real" problem with a Pascal program I wrote many 20
>>years ago and why I never used the 'with' keyword since.
>>
>>
>
>A lot depends on whether you want to favor the reader or writer. Your
>complaint about having to fix existing programs when a change is made
>is about favoring the writer, but the concern about encouraging long
>name usage is about favoring the reader.
>
I favour code maintenance. I don't like fixing bugs only to introduce a
whole bunch of new ones that are hard to find. This is probably my
largest concern when it comes to writing code.
Perhaps this is why we have a large difference of opinion of what is
more important.
>Note that this is an old discussion in the Ada world. Ada allows the USE
>clause to open up visibility, but at the expense of possible illegalities
>when new names are used. Some Ada users eschew USE completely, but others
>find USE an important capability for improving readability of code.
>
>So I find this general argument against WITH dubious. For sure it is not
>a consensus viewpoint, since in practice the world divides between those
>who dislike all implicit naming and those who find it valuable. Note that
>if such a feature is used, you presumably would prefer not to use it, but
>I don't regard that as a good argument for imposing your viewpoint.
>
>The stronger argument against adding WITH in C++ seems to be that there
>is already an adequate mechanism for providing short nicknames locally
>for long names, and WITH does not provide sufficient extra functionality
>to be worth the effort (note that compiler writers will worry that taking
>the address of something may degrade the code, so the example with the
>reference is an interesting one for the optimization crowd :-)
>
>
Agreed.
next prev parent reply other threads:[~2003-01-04 18:36 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-04 18:11 Robert Dewar
2003-01-04 18:47 ` Gianni Mariani [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-06 13:07 Robert Dewar
2003-01-05 18:41 Robert Dewar
2003-01-05 13:03 Robert Dewar
2003-01-05 13:39 ` Toon Moene
2003-01-05 12:56 Robert Dewar
2003-01-06 12:18 ` Andrew Haley
2003-01-05 12:56 Robert Dewar
2003-01-05 18:22 ` Joseph S. Myers
2003-01-05 12:44 Robert Dewar
2003-01-05 3:16 Robert Dewar
2003-01-05 0:38 Robert Dewar
2003-01-05 0:29 Robert Dewar
2003-01-05 0:37 ` Kevin Handy
2003-01-04 23:27 Robert Dewar
2003-01-04 23:36 ` Lynn Winebarger
2003-01-05 2:55 ` Gianni Mariani
2003-01-04 22:13 Robert Dewar
2003-01-04 20:59 Robert Dewar
2003-01-04 22:36 ` Gianni Mariani
2003-01-04 20:09 Robert Dewar
2003-01-04 19:36 Robert Dewar
2003-01-04 19:59 ` Tolga Dalman
2003-01-04 19:13 Robert Dewar
2003-01-04 20:58 ` Gianni Mariani
2003-01-04 17:52 Robert Dewar
2003-01-04 17:59 ` Gianni Mariani
2003-01-04 17:06 Robert Dewar
2003-01-04 17:22 ` Daniel Berlin
2003-01-05 11:33 ` Andrew Haley
2003-01-05 11:36 ` Toon Moene
2003-01-04 14:29 Robert Dewar
2003-01-04 15:00 ` Momchil Velikov
2003-01-04 15:24 ` Andrew Haley
2003-01-04 16:25 ` Neil Booth
2003-01-04 17:35 ` Gianni Mariani
2003-01-04 17:59 ` Tolga Dalman
2003-01-04 18:36 ` Gianni Mariani
2003-01-04 18:54 ` Tolga Dalman
2003-01-04 23:32 ` Kevin Handy
2002-12-29 8:32 Norman Jonas
2002-12-29 12:46 ` Russ Allbery
2002-12-29 6:49 Erik Schnetter
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=3E1729A7.2030201@chaincast.com \
--to=gmariani@chaincast.com \
--cc=dewar@gnat.com \
--cc=gcc@gcc.gnu.org \
/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).