220 4136 <CAGqM8fYSxxNqXmr=TQUjj_tA4pau3oM9_UEXLssqjzmarZi47w@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Lawrence Crowl <crowl@googlers.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Default values in middle parameters in a function
Date: Wed, 1 May 2013 10:44:52 -0700
Lines: 36
Approved: news@gmane.org
Message-ID: <CAGqM8fYSxxNqXmr=TQUjj_tA4pau3oM9_UEXLssqjzmarZi47w@mail.gmail.com>
References: <25d51458-9a2e-4607-9b1a-9d2a7be8df4e@isocpp.org>
	<CAGqM8fYDgZbfH6dugPnLqYvwZhSeVvC+gMVLLLx3OzYBmYByTg@mail.gmail.com>
	<CAE1+XsZWWbKwX+vJc7VQUjyRXXvmJePofKy2CP8+3ERRtTYrYw@mail.gmail.com>
	<7c79ca05-607f-40e8-bd51-467363f007ac@isocpp.org>
	<CAE1+XsYAmAD+OMxHSCT-+cn5=2dA-_SuiW8-2qZ3Z=cCabSiHA@mail.gmail.com>
	<1e218f68-c60d-4f13-89de-86c4916c7f62@isocpp.org>
	<CAE1+XsZTfKK+C=xK=hPuQYMJSdOLZW8u2VsfvYG4jpUUjEzzyg@mail.gmail.com>
	<5eb59eff-8489-49b4-8f15-14667be6e964@isocpp.org>
	<CAE1+Xsa1ztFdaaTwX1oDn3ObSqzzWTkXQyDd89jePX725uvzeQ@mail.gmail.com>
	<CAGqM8fb7tsSeMLoH6_PtwNb=bMfT+aihvP-brS_K6yeDK0HRCQ@mail.gmail.com>
	<CAE1+XsZgHbK_Tpad3LGedCYg435Nit6Ao5_35sy1405iy3J7AA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1367430796 17029 80.91.229.3 (1 May 2013 17:53:16 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 1 May 2013 17:53:16 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCY3D77DYUDBBCVNQWGAKGQEMYRCMJA@isocpp.org Wed May 01 19:53:17 2013
Return-path: <std-proposals+bncBCY3D77DYUDBBCVNQWGAKGQEMYRCMJA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f199.google.com ([209.85.223.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCY3D77DYUDBBCVNQWGAKGQEMYRCMJA@isocpp.org>)
	id 1UXbDQ-0002tP-1A
	for gclcip-std-proposals@m.gmane.org; Wed, 01 May 2013 19:53:16 +0200
Original-Received: by mail-ie0-f199.google.com with SMTP id x14sf9362304ief.6
        for <gclcip-std-proposals@m.gmane.org>; Wed, 01 May 2013 10:53:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlers.com; s=googlers;
        h=x-received:x-beenthere:x-received:received-spf:mime-version
         :x-received:in-reply-to:references:date:message-id:subject:from:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-google-group-id:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=jq/k5oN7PadxRim1Hv+S1MMX2Xd8TQ4u41vEV5ZNQjI=;
        b=dO4SxZpLbY/1sofvxxFaAsLYiKmk+WGJHGMGPHnVyFFobIW56dQ5unOMeAZ/t+s1Do
         /byAFDpBcquWxRlHjOuo0h/8NAw1RerXjApgfNaTOzun1yWIFuL2oihCCTehsvmfHnKz
         O46Gdm9H7Ls018VbF/iM2zZeYD32GE05ou6EI=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=x-received:x-beenthere:x-received:received-spf:mime-version
         :x-received:in-reply-to:references:date:message-id:subject:from:to
         :x-gm-message-state:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=jq/k5oN7PadxRim1Hv+S1MMX2Xd8TQ4u41vEV5ZNQjI=;
        b=nbvZXlxPk64voyCKNLqu23pi8oCW5JFJwSTR1RlrwqbMJmMkIV/GXPQH8Outox2JJg
         /jU56gEEoFczod6ZiPP7YH8035P+bKN1yzgR/ek3Chqsr/X2MqN9c1Z/FMwTgkrDhkUU
         LAn3MKopB0tFdaw3+mBRawLqjJSzK9vDpF9+qUxFOCrINi70no4m770l+YuGdb2yFKUW
         hcf3A14fZneCZJCsQ1qQVG9YV1kB+RE9jfGPFk9Uai57i90AcMhy9eN352MAnPGKFcWE
         I6NvCV9/BK6+GY2I5DiABCR5gJF+4it 
X-Received: by 10.42.29.137 with SMTP id r9mr3479423icc.5.1367430794878;
        Wed, 01 May 2013 10:53:14 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.209.1 with SMTP id mi1ls3505674igc.30.canary; Wed, 01 May
 2013 10:53:12 -0700 (PDT)
X-Received: by 10.50.44.82 with SMTP id c18mr13541085igm.70.1367430792748;
        Wed, 01 May 2013 10:53:12 -0700 (PDT)
Original-Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [2607:f8b0:4001:c03::22b])
        by mx.google.com with ESMTPS id oy9si2867692icb.57.2013.05.01.10.53.11
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 01 May 2013 10:53:11 -0700 (PDT)
Received-SPF: pass (google.com: domain of crowl@google.com designates 2607:f8b0:4001:c03::22b as permitted sender) client-ip=2607:f8b0:4001:c03::22b;
Original-Received: by mail-ie0-f171.google.com with SMTP id e11so2208939iej.2
        for <std-proposals@isocpp.org>; Wed, 01 May 2013 10:53:11 -0700 (PDT)
X-Received: by 10.50.78.37 with SMTP id y5mr7094024igw.43.1367430292568; Wed,
 01 May 2013 10:44:52 -0700 (PDT)
Original-Received: by 10.231.110.80 with HTTP; Wed, 1 May 2013 10:44:52 -0700 (PDT)
In-Reply-To: <CAE1+XsZgHbK_Tpad3LGedCYg435Nit6Ao5_35sy1405iy3J7AA@mail.gmail.com>
X-Gm-Message-State: ALoCoQl8eknjsb41omVQr1ZXEtZ36iDl3bgscq9NwkQK+u3p3Y603O/f1oKZ3QTdI1pdgRm9sH1Bqxxfwknqc79T5uU6EsuXxH+KAjkCpqMtaYHhncN07V+VuX7DOotm69BdrbTET609mUb1rh7n8UUO72EgxDWE70OgIfjGERR8cCHvYiJVzWoLQJyJW6h9gtHzhuw0hmDX
X-Original-Sender: crowl@googlers.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of crowl@google.com designates 2607:f8b0:4001:c03::22b as permitted
 sender) smtp.mail=crowl@google.com;       dkim=pass header.i=@googlers.com;
       dmarc=pass (p=NONE dis=none) d=googlers.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:4136
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4136>

On 4/30/13, Hariharan Subramanian <tohari@gmail.com> wrote:
> On Apr 30, 2013 Lawrence Crowl <crowl@googlers.com> wrote:
> > On 4/30/13, Hariharan Subramanian <tohari@gmail.com> wrote:
> > > The motivation for me to propose is the use case which I
> > > mentioned. It so happens that it works for re-declaration stuff
> > > properly. Whereas nullopt does not work for re-declaration.
> >
> > Would named arguments meet your need?  E.g.
> >
> > int foo( type1 arg1=value1, type2 arg2=value2, type3 arg3=value3);
> >
> > And to use a syntax that I am pretty sure will not work,
> > foo(arg3 is value4) means foo(value1, value2, value4).
>
> Named arguments is too powerful a tool for this purpose. It
> might solve a bigger problem. For this smaller problem a simple
> default suffices.

One of the tasks of the committee is to balance the value of
new features against the increasing complexity of the language.
Whenever we can serve several different needs with one language
feature, we save everyone considerable effort to learn things.

-- 
Lawrence Crowl

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



.
