<div dir="ltr">On Sun, Aug 7, 2016 at 9:31 PM, Brandon Knope via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><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">Can someone quickly explain what this new API does compared to what SE-101 had?<br>
<br>
I'm trying hard to see what's being added here but my brain isn't working<br>
<br>
Brandon<br></blockquote><div><br></div><div>The text of SE-0101 was never updated to reflect the core team's decision, which was that MemoryLayout was to be an enum with no cases and without the suggested `of(_:)` functions. This proposal is to restore the `of(_:)` functions, but it incorporates recent discussion as to the most appropriate spelling for them.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sent from my iPad<br>
<div class="HOEnZb"><div class="h5"><br>
> On Aug 7, 2016, at 10:18 PM, Dave Abrahams via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
><br>
><br>
> on Sun Aug 07 2016, Karl <razielim-AT-gmail.com> wrote:<br>
><br>
>>> * What is your evaluation of the proposal?<br>
>><br>
>> +1<br>
>><br>
>> Although if I was nitpicking I prefer the name “ofInstance” (as in the<br>
>> stdlib private function) to “ofValue”.<br>
><br>
> The problem with “ofInstance” is that a class instance will be reported<br>
> to be the same size as Int. Most people think of a class instance as<br>
> the place where its stored properties live, not the reference.<br>
><br>
>><br>
>> What is the standard nomenclature? Whereas I would distinguish between<br>
>> “objects/instances” and “values”, I’ve started referring to all Swift<br>
>> things as “objects” and “instances”, even if they are value types.<br>
>><br>
>><br>
>>> * Is the problem being addressed significant enough to warrant a<br>
>>> change to Swift?<br>
>><br>
>> Yes<br>
>><br>
>>> * Does this proposal fit well with the feel and direction of<br>
>>> Swift?<br>
>><br>
>> Yes<br>
>><br>
>>> * If you have used other languages or libraries with a similar<br>
>>> feature, how do you feel that this proposal compares to those?<br>
>><br>
>> I think the metatype system needs revising for Swift >3.0, but given<br>
>> time constraints this is the best solution<br>
>><br>
>>> * How much effort did you put into your review? A glance, a<br>
>>> quick reading, or an in-depth study?<br>
>><br>
>> Followed prior discussion, read proposal<br>
>><br>
>>><br>
>>> More information about the Swift evolution process is available at<br>
>>><br>
>>> <a href="https://github.com/apple/swift-evolution/blob/master/process.md" rel="noreferrer" target="_blank">https://github.com/apple/<wbr>swift-evolution/blob/master/<wbr>process.md</a><br>
>>><br>
>>> Thank you,<br>
>>><br>
>>> Dave Abrahams<br>
>>> Review Manager<br>
>>> ______________________________<wbr>_________________<br>
>>> swift-evolution mailing list<br>
>>> <a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
>>> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br>
><br>
> --<br>
> -Dave<br>
> ______________________________<wbr>_________________<br>
> swift-evolution mailing list<br>
> <a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
> <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br>
______________________________<wbr>_________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br>
</div></div></blockquote></div><br></div></div>