<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Okay, I see your points. Thanks for response!<br><br><div><hr id="stopSpelling">Subject: Re: [swift-evolution] Proposal for Replacing Keyword "subscript" with "subs"ž<br>From: clattner@apple.com<br>Date: Thu, 10 Dec 2015 21:06:52 -0800<br>CC: swift-evolution@swift.org<br>To: feijian_sun@hotmail.com<br><br><br><div><blockquote><div>On Dec 10, 2015, at 6:12 PM, Feijian Sun via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:</div><br class="ecxApple-interchange-newline"><div><div dir="ltr" style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;"><div dir="ltr"><span style="color:rgb(68, 68, 68);font-size:15px;line-height:21.3px;background-color:rgb(255, 255, 255);">Hello,&nbsp;</span><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);">I have a proposal to replace the long keyword "subscript" with the shorter version, "subs". The idea is to keep the concise naming style on the language keywords, like "init" and "func".</div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);">So, Instead of:</div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);">subscript(index: Int) -&gt; Int {</div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);">&nbsp; &nbsp; &nbsp; &nbsp; ... ...</div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);">}</div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);">we could simply do:</div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);">subs(index: Int) -&gt; Int{</div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);"><div style="line-height:21.3px;">&nbsp; &nbsp; &nbsp; &nbsp; ... ...</div><div style="line-height:21.3px;">}</div></div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);"><br style="line-height:21.3px;"></div><div style="line-height:21.3px;color:rgb(68, 68, 68);font-size:15px;background-color:rgb(255, 255, 255);">Does this mean a big change on the parser side? what do you think?</div></div></div></div></blockquote><br></div><div>Hi Feijian,</div><div><br></div><div>I agree with Jack in this case that we should keep "subscript". &nbsp;Swift's rough approach to keywords is:&nbsp;</div><div><br></div><div>1) reuse contracted keywords that are widely known in the C family when the connotations are obvious (e.g. struct, enum, etc). &nbsp;</div><div>2) contract some “new” keywords for the *most commonly occurring* situations (e.g. func/var, though var is precedented in a number of extended c family languages like javascript), because people are expected to be forced to learn these things in the first few days of their swift learning.</div><div>3) otherwise, use a full word (subscript, convenience, mutating, etc).</div><div><br></div><div>In the case of subscript, it doesn’t occur often enough to be worth forcing people to memorize, and thus we prefer obvious clarity in the situations when it occurs in code.</div><div><br></div><div>-Chris</div><br></div>                                               </div></body>
</html>