[swift-evolution] [Review] SE-0101: Rename sizeof and related functions to comply with API Guidelines
David Sweeris
davesweeris at mac.com
Wed Jun 29 05:06:58 CDT 2016
Would adding a "init(_: T.self) {...}" solve that issue?
- Dave Sweeris
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.
More information about the swift-evolution
mailing list