[swift-evolution] [Review] SE-0101: Rename sizeof and related functions to comply with API Guidelines
Dave Abrahams
dabrahams at apple.com
Wed Jun 29 12:34:30 CDT 2016
on Wed Jun 29 2016, David Sweeris <davesweeris-AT-mac.com> wrote:
> Would adding a "init(_: T.self) {...}" solve that issue?
>
? I don't see how.
>
> Sent from my iPhone
>
>> On Jun 29, 2016, at 01:54, Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:
>>
>> My worry is that people will write
>>
>> MemoryLayout(Int.self).size
>>
>> when they mean
>>
>> MemoryLayout<Int>.size
>>
>> (often because for some reason they don't like angle brackets).
>>
>> I prefer to make the uncommon case much harder to write.
--
Dave
More information about the swift-evolution
mailing list