[Accepted] SE-0101: Reconfiguring sizeof and related functions into a unified MemoryLayout struct


(Chris Lattner) #1

Proposal Link: https://github.com/apple/swift-evolution/blob/master/proposals/0101-standardizing-sizeof-naming.md

The second review of "SE-0101: Reconfiguring sizeof and related functions into a unified MemoryLayout struct" ran from Active review July 12...19. The proposal has been *accepted*, with a revision to change “MemoryLayout” into an enum with no cases. The overall feedback was very positive. The core team did discuss a proposal to move the generic type to each member, but felt that that would increase the verbosity of using the API (since T.self would be required) and would lead to possible confusion in the API (because it wouldn’t be clear whether you were asking for the size of a type, or the size of its metatype).

Thank you to Erica Sadun and Dave Abrahams for driving this discussion forward.

-Chris Lattner
Review Manager