X-Received: by 10.182.142.9 with SMTP id rs9mr8351087obb.27.1381567802367; Sat, 12 Oct 2013 01:50:02 -0700 (PDT) MIME-Version: 1.0 Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!o2no483299qas.0!news-out.google.com!9ni32754qaf.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 12 Oct 2013 03:50:02 -0500 Return-Path: Sender: std-cpp-request@vandevoorde.com Approved: james.dennett@gmail.com Message-ID: <3fa2e85e-550f-4efc-ba6a-e522852dc322@googlegroups.com> Newsgroups: comp.std.c++ From: Helmut Zeisel Subject: Re: proposal : keyword default Organization: unknown References: <3c07b20c$1@master.soko.hr> X-Original-Date: Thu, 10 Oct 2013 23:54:24 -0700 (PDT) X-Submission-Address: std-cpp-submit@vandevoorde.com To: undisclosed-recipients:; Date: Sat, 12 Oct 2013 03:47:43 CST Lines: 45 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-JPNxvAFtzeO2i+FH0RLLJ3xGPlAGBM9InsHGTTJOYrxKKB1xsUzzMIH7czNTaEQvsSUxHeuYEVWu/nT!vR6CFsxH/sGGX+UUhO8r2ITiNH4fQ9n3L+3PKbZBBOWd37ISMYv5R1dL1zEHANSpYcPowa7HTI1o!wtoB7JCWPEE= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3007 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 3325 Xref: csiph.com comp.std.c++:683 Am Montag, 7. Oktober 2013 22:10:01 UTC+2 schrieb Edward Diener: > On 10/7/2013 3:50 AM, Francis Glassborow wrote: > > If you stop to consider it, it should be clear that this would have > > > been considered right at the start of the design of default arguments > > > for C++. It wasn't that it was hard to do, so there must have been > > > other reasons (I am pretty sure they will have been mentioned > > > somewhere in 'The Design and Evolution of C++') > > > > You may be crediting Mr. Stroustrup with too much foresight. Nonetheless > > if you have any particular discussion to cite about this in D&E or > > otherwise I would be glad to peruse it. Maybe Francis Glassborow refers to 6.5 "Examples of Proposed Extensions", 6.5.1 "Keyword Arguments". The last paragraph is "My main worry about keyword arguments was actually that keyword arguments might slow the gradual transition from traditional programming techniques to data abstraction and object-oriented programming in C++. In code that I find best written and easiest to obtain, long argument lists are very rare". IMHO the same can be said about the proposed keyword default and the same alternatives as in Chapter 6.5.1.1 can be used. Helmut -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]