[swift-evolution] [Pitch] Renaming sizeof, sizeofValue, strideof, strideofValue

Erica Sadun erica at ericasadun.com
Thu Jun 2 11:14:11 CDT 2016


> On Jun 2, 2016, at 10:12 AM, Matthew Johnson <matthew at anandabits.com> wrote:
>> On Jun 2, 2016, at 11:04 AM, Erica Sadun <erica at ericasadun.com <mailto:erica at ericasadun.com>> wrote:
>>> On Jun 2, 2016, at 9:48 AM, Matthew Johnson via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>> 
>>> struct MemoryLayout<T> {
>>>     init() {}
>>>     init(t: T) { /* throw away the value */ }
>> 
>> And amended Alternatives with this. :)
> 
> Thanks!  Can you change the init signature with Pyry’s improvement: `init(_: @autoclosure () -> T) {}`?

https://github.com/erica/swift-evolution/blob/sizestride/proposals/XXXX-sidestride.md

-- E

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160602/ed71fe4f/attachment.html>


More information about the swift-evolution mailing list