220 4488 <c1b22dc7-9116-4d18-b66f-526b134ccb76@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Ran Regev <regev.ran@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: using new keywords for more proposes
Date: Thu, 23 May 2013 03:29:57 -0700 (PDT)
Lines: 147
Approved: news@gmane.org
Message-ID: <c1b22dc7-9116-4d18-b66f-526b134ccb76@isocpp.org>
References: <bb64312e-bb22-4ae4-9111-b5315d8c6449@isocpp.org>
 <CAFfXxVsAvioOtcW2+VukU=7tGgavRRjXW1X3V1Z7z+LPnXDrWg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_505_4495646.1369304997834"
X-Trace: ger.gmane.org 1369305000 23975 80.91.229.3 (23 May 2013 10:30:00 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 23 May 2013 10:30:00 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDJMNP4X6UOBBJW766GAKGQECNGR5TI@isocpp.org Thu May 23 12:30:01 2013
Return-path: <std-proposals+bncBDJMNP4X6UOBBJW766GAKGQECNGR5TI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ve0-f198.google.com ([209.85.128.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDJMNP4X6UOBBJW766GAKGQECNGR5TI@isocpp.org>)
	id 1UfSmV-0001LJ-W7
	for gclcip-std-proposals@m.gmane.org; Thu, 23 May 2013 12:30:00 +0200
Original-Received: by mail-ve0-f198.google.com with SMTP id 15sf235229vea.9
        for <gclcip-std-proposals@m.gmane.org>; Thu, 23 May 2013 03:29:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:x-google-group-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=G5/pVCeTt2QE8ggNj3jpwuHl+w7IsBxLCsyqB8JrZWY=;
        b=tXoAYMzqOjLMcOwkSNBo2oR6TvOa4ozEc+xXVL7BuwphZSipusmgDCF1SsrWBmfzoS
         mbNh8eobKArZzJpsz/ypDZVVG9Smk13gMUj+sU5FsubeAf8Bl5LFPi2oghOgbPn9toZw
         OyDv7dpTwHtCt24hzenWbNIQ/iYABV3g09JehYGg+z26yBmceqhA+fJ4YYHqPOIqQYVj
         UTkYRcPYN2SL2henIXzWqqW4CvlTJl3JBhyQcRM7KNVCI1aGoEliHuET9T86Engyz1AK
         +4dYcpXq37I7Xc/nh+/VLLQnnnphIKYVWxdxR0Xyz6tfn32pN5W8EbeUP6eEuNT/l52f
         eg8g==
X-Received: by 10.224.200.202 with SMTP id ex10mr6041823qab.8.1369304999003;
        Thu, 23 May 2013 03:29:59 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.18.195 with SMTP id y3ls1357029qed.67.gmail; Thu, 23 May
 2013 03:29:58 -0700 (PDT)
X-Received: by 10.49.1.197 with SMTP id 5mr1187093qeo.24.1369304998100;
        Thu, 23 May 2013 03:29:58 -0700 (PDT)
In-Reply-To: <CAFfXxVsAvioOtcW2+VukU=7tGgavRRjXW1X3V1Z7z+LPnXDrWg@mail.gmail.com>
X-Original-Sender: regev.ran@gmail.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:4488
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4488>

------=_Part_505_4495646.1369304997834
Content-Type: text/plain; charset=ISO-8859-1


Thanks for the answer, backward compatibility was my initial guess.
I have two following questions:
1) Is it only me or that everyone must fix something when advancing a 
compiler?
And if I'm not the only one, then what does it matter if we need to fix X 
issues or X + 3?

2) How do c++ editors color the new keywords? Do they try to understand the 
meaning of the words and color it accordingly, or ??

Ran.

On Wednesday, May 22, 2013 9:52:21 AM UTC+3, James Dennett wrote:
>
> On Tue, May 21, 2013 at 11:31 PM, Ran Regev <rege...@gmail.com<javascript:>> 
> wrote: 
> > 
> > Hello, 
> > 
> > Can anyone point me to the discussion on "why not defining new keywords 
> as 
> > 'real' keywords"? 
>
> It's discussed with almost horrible frequency, but mostly not in 
> writing in public forums I'd guess. 
>
> The short version: it breaks existing code that uses them as 
> identifiers, and the C++ committee is (believe it or not) somewhat 
> strongly averse to breaking existing working code. 
>
> (Personally I'd prefer to add more keywords; fixing up the resulting 
> problems is worthwhile in my opinion.) 
>
> > For example, why can 'final' be used as a variable? 
> > Surely it causes problems: 
> > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3539.html#1318 
>
> Breaking all of the code that uses "final" as an identifier would also 
> cause problems.  As with almost all things, it's a trade-off, not a 
> good vs bad decision.  (In my limited checks, there are actually far 
> more uses of "override" than "final", but both are used somewhat 
> frequently in real C++98 code.) 
>
> In this particular case, there was pre-existing experience from 
> C++/CLI that using contextual keywords for these was workable -- and 
> the C++ committee does give some weight to implementation/usage 
> experience. 
>
> You might notice that the keywords added in C++11 are often rather 
> obscure: e.g., "nullptr" instead of "null".  A significant part of the 
> reason for that is to avoid clashes with existing code. 
>
> -- James 
>

-- 

--- 
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.



------=_Part_505_4495646.1369304997834
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div><br></div><div><div>Thanks for the answer, backward compatibility was =
my initial guess.</div><div>I have two following questions:</div><div>1) Is=
 it only me or that everyone must fix something when advancing a compiler?<=
/div><div>And if I'm not the only one, then what does it matter if we need =
to fix X issues or X + 3?</div><div><br></div><div>2) How do c++ editors co=
lor the new keywords? Do they try to understand the meaning of the words an=
d color it accordingly, or ??</div><div><br></div><div>Ran.</div><br>On Wed=
nesday, May 22, 2013 9:52:21 AM UTC+3, James Dennett wrote:<blockquote clas=
s=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #c=
cc solid;padding-left: 1ex;">On Tue, May 21, 2013 at 11:31 PM, Ran Regev &l=
t;<a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"wugDjn=
8dalwJ">rege...@gmail.com</a>&gt; wrote:
<br>&gt;
<br>&gt; Hello,
<br>&gt;
<br>&gt; Can anyone point me to the discussion on "why not defining new key=
words as
<br>&gt; 'real' keywords"?
<br>
<br>It's discussed with almost horrible frequency, but mostly not in
<br>writing in public forums I'd guess.
<br>
<br>The short version: it breaks existing code that uses them as
<br>identifiers, and the C++ committee is (believe it or not) somewhat
<br>strongly averse to breaking existing working code.
<br>
<br>(Personally I'd prefer to add more keywords; fixing up the resulting
<br>problems is worthwhile in my opinion.)
<br>
<br>&gt; For example, why can 'final' be used as a variable?
<br>&gt; Surely it causes problems:
<br>&gt; <a href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013=
/n3539.html#1318" target=3D"_blank">http://www.open-std.org/jtc1/<wbr>sc22/=
wg21/docs/papers/2013/<wbr>n3539.html#1318</a>
<br>
<br>Breaking all of the code that uses "final" as an identifier would also
<br>cause problems. &nbsp;As with almost all things, it's a trade-off, not =
a
<br>good vs bad decision. &nbsp;(In my limited checks, there are actually f=
ar
<br>more uses of "override" than "final", but both are used somewhat
<br>frequently in real C++98 code.)
<br>
<br>In this particular case, there was pre-existing experience from
<br>C++/CLI that using contextual keywords for these was workable -- and
<br>the C++ committee does give some weight to implementation/usage
<br>experience.
<br>
<br>You might notice that the keywords added in C++11 are often rather
<br>obscure: e.g., "nullptr" instead of "null". &nbsp;A significant part of=
 the
<br>reason for that is to avoid clashes with existing code.
<br>
<br>-- James
<br></blockquote></div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_505_4495646.1369304997834--

.
