<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=""><div class="">Yeah I realise who Dave is :)</div><div class=""><br class=""></div><div class="">Ok, that’s good to know about your uses. An extra benefit that MemoryLayout has is a developer who is familiar with sizeof() from other languages (I only know of C), if it was called the same thing in Swift they might just go ahead and use it and add their own alignment tricks. Whereas a MemoryLayout type ties of all this functionality together in the one place, where they can discover that `stride`/`spacing` might serve them better.</div><div class=""><br class=""></div><div class="">Patrick</div><br class=""><div><blockquote type="cite" class=""><div class="">On 2 Jun 2016, at 4:23 PM, Xiaodi Wu <<a href="mailto:xiaodi.wu@gmail.com" class="">xiaodi.wu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">On Thu, Jun 2, 2016 at 12:37 AM, Patrick Smith <span dir="ltr" class=""><<a href="mailto:pgwsmith@gmail.com" target="_blank" class="">pgwsmith@gmail.com</a>></span> wrote:<br class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Yes but, if they weren’t functions now, what would be the best design?</div></div></blockquote><div class=""><br class=""></div><div class="">Dave's suggestions then were made in the context of a language that had `.dynamicType`. The question today is how best to align these functions with `type(of:)`. If we were to ignore this context, I'm not sure on what basis we could judge whether a property or function is 'best' for these facilities.</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">How many Swift developers will be using this functionality? Less than 1%? I trust Dave’s judgement because he is in that small group.</div></div></blockquote><div class=""><br class=""></div><div class="">I would caution against this assumption. I'm not a particularly advanced developer by any stretch of the imagination, and I've been using `strideof()` plenty of times while doing some math with Accelerate.framework and Metal buffers. That said, Dave's in a very small group indeed, the group that wrote these functions to start with.</div></div></div></div></div></blockquote></div><br class=""></body></html>