<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 2, 2016, at 2:05 PM, Xiaodi Wu &lt;<a href="mailto:xiaodi.wu@gmail.com" class="">xiaodi.wu@gmail.com</a>&gt; wrote:</div><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><div class="gmail_quote"><br class=""><div class=""><br class=""></div><div class="">In the earlier conversation, it was pointed out (by Dave A., I think?) that examples such as Array.size show how this solution can get confusing. And even though there aren't fixed-length arrays in Swift, those may come one day, making the syntax even more confusing.</div></div></div></div></div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">Array.count is a function taking an instance; I’m not sure I agree it would be terribly confusing… then again I run in Xcode with the quick help pane open so I see the doc comments for every type, property, and function as I move around the code. It’s quite handy :)</div><div class=""><br class=""></div><div class="">I could see including memory in the name (or something similar) if we want to be extra clear about it.</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; Int.memorySize</div><div class="">&nbsp; &nbsp; Int.memoryAlignment</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Ultimately the type’s size in memory <i class="">is a property of the type</i> so it seems clear that is where it belongs (being careful not to steal too much of the namespace of course).</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Russ</div></body></html>