Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| X-Received | by 10.58.39.202 with SMTP id r10mr164834vek.12.1381638002323; Sat, 12 Oct 2013 21:20:02 -0700 (PDT) |
|---|---|
| MIME-Version | 1.0 |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!o2no1856072qas.0!news-out.google.com!9ni35565qaf.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 23:20:02 -0500 |
| Return-Path | <cppmods@mcgurn.dreamhost.com> |
| Sender | std-cpp-request@vandevoorde.com |
| Approved | stephen.clamage@oracle.com |
| Message-ID | <3795f424-647f-4e86-bca2-471a957250bf@googlegroups.com> (permalink) |
| Newsgroups | comp.std.c++ |
| From | ootiib@hot.ee |
| Subject | Re: proposal : keyword default |
| Organization | unknown |
| References | <3c07b20c$1@master.soko.hr> <f7909d88-eef3-4c68-864f-09912789dc89@googlegroups.com> <FOOdncbkK9Y5uNPPnZ2dnUVZ_sKdnZ2d@earthlink.com> <l2nojk$10h$1@dont-email.me> <u-ydncvlzM5_7szPnZ2dnUVZ7qydnZ2d@bt.com> <l2ucul$tg3$1@dont-email.me> <3fa2e85e-550f-4efc-ba6a-e522852dc322@googlegroups.com> <l3bqlm$ro7$1@dont-email.me> |
| X-Original-Date | Sat, 12 Oct 2013 13:00:18 -0700 (PDT) |
| X-Submission-Address | std-cpp-submit@vandevoorde.com |
| To | undisclosed-recipients:; |
| Date | Sat, 12 Oct 2013 23:10:26 CST |
| Lines | 49 |
| X-Usenet-Provider | http://www.giganews.com |
| X-Trace | sv3-Ygm/7j1kHrFBybhMJjRGrCRo9AZpEiiUa9GZHNz4aldwFNmDz9iOXiFlzB0ep7tNrgGR8XPQHO7MkZu!ogIkBkdrcYvz3/DExJIhCashMwiBJUN2A9nKnblogZlOlT8RLWbGdwgNSXlfBaYR/NjqhV9HiX3j!1w0fAQd7QOU= |
| 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 | 3737 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.std.c++:685 |
Show key headers only | View raw
On Saturday, 12 October 2013 19:40:01 UTC+3, Edward Diener wrote: > On 10/12/2013 5:47 AM, Helmut Zeisel wrote: > > 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. > > What does using default arguments in functions and templates have to do > with long argument lists ? Something they have to have to do because you did bring the "Windows API headers" up as pro argument. Good design avoids squeezing several different responsibilities into single 6+ parameter function (like 'CreateFile' of Windows API) in interfaces. Having proposed change may make calls of such monsters shorter. > What do default arguments have to do with keyword arguments in other > languages ? Keyword arguments are feature that is meant to achieve very same goal. Programmer cherry-picks certain parameters and leaves others as defaults. It feels pointless to be heated up about it. C++ is already king of complexity if to consider its argument passing. Being hesitant about making it even more complex is rational. Try and write code editor that does show tool-tips what parameter it is meant by "default" there. It has to do all the overload resolution and argument dependent lookup in the million lines of included files for to guess it with passable correctness. Without such editor however we are lost in such long argument lists. -- [ 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 ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
Re: proposal : keyword default alexander.stoyan@googlemail.com - 2013-10-03 13:25 -0600
Re: proposal : keyword default Daniel Krügler <daniel.kruegler@googlemail.com> - 2013-10-04 11:19 -0700
Re: proposal : keyword default "Paul D. DeRocco" <pderocco@ix.netcom.com> - 2013-10-04 11:58 -0700
Re: proposal : keyword default Bo Persson <bop@gmb.dk> - 2013-10-05 19:19 -0700
Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-07 01:50 -0600
Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-05 19:19 -0700
Re: proposal : keyword default Francis Glassborow <francis.glassborow@btinternet.com> - 2013-10-07 01:50 -0600
Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-07 15:05 -0600
Re: proposal : keyword default James Kuyper <jameskuyper@verizon.net> - 2013-10-08 12:36 -0700
Re: proposal : keyword default Helmut Zeisel <zei2011@liwest.at> - 2013-10-12 03:47 -0600
Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-12 11:36 -0600
Re: proposal : keyword default ootiib@hot.ee - 2013-10-12 23:10 -0600
Re: proposal : keyword default John Harris <niam@jghnorth.org.uk.invalid> - 2013-10-13 11:33 -0600
Re: proposal : keyword default Edward Diener <eldiener@tropicsoft.invalid> - 2013-10-16 10:34 -0600
Re: proposal : keyword default Helmut Zeisel <zei2011@liwest.at> - 2013-10-14 20:37 -0700
Re: proposal : keyword default Alexander Terekhov <terekhov@web.de> - 2013-10-18 01:20 -0600
csiph-web