<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<br>
<br>
<blockquote type="cite" cite="mid:CANSoFxsUNic9CuHge4SQxLMJZRBkhTVo=nNQomADWiYvbrfR9g@mail.gmail.com">
<div dir="ltr">
<div class="gmail_quote">This new "this escape" warning would
really just be a new compiler feature rather than a language
change, right? It's not changing the language, it's just
expanding the set of possible warnings that can be generated.
Obviously it would be very helpful in getting people to think
more about "constructor hygiene".<br>
</div>
</div>
</blockquote>
<br>
Warnings generally do not require a spec change (though few some are
specified as "mandatory warnings".) Obviously changing what
statements are allowed where does requires spec change. <br>
<br>
<blockquote type="cite" cite="mid:CANSoFxsUNic9CuHge4SQxLMJZRBkhTVo=nNQomADWiYvbrfR9g@mail.gmail.com">
<div dir="ltr">
<div class="gmail_quote">So then would its inclusion in a JEP be
more about precisely defining the concept and describing the
goodness that comes from it?<br>
</div>
</div>
</blockquote>
<br>
While we could do more warnings as ordinary RFEs, there's
potentially still value in grouping these all under a JEP, for the
reasons you hint at and more. Let's work through the design, figure
out if we can actually provide any new safety guarantees (as opposed
to just more warnings), and then figure out the best vehicle. <br>
<br>
<br>
</body>
</html>