[swift-evolution] [Review] SE-0018 Flexible Memberwise Initialization
Paul Cantrell
paul at innig.net
Fri Jan 8 11:15:05 CST 2016
> On Jan 8, 2016, at 11:11 AM, plx via swift-evolution <swift-evolution at swift.org> wrote:
>
>>
>> On Jan 8, 2016, at 11:03 AM, Paul Cantrell via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>
>> (Aside, a small nitpick, but it really bugs me: initialization has O(M+N) complexity, not O(M×N) complexity. One doesn’t initialize every member with every parameter.)
>
> FWIW I believe it’s meant to be interpreted as "M lines of boilerplate per initializer" x "N initializers” => ~ MN lines of initializer-related boilerplate per type.
Ah, right, per initializer — not per initialized variable. My bad! That makes much more sense.
P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160108/6b7dddfb/attachment.html>
More information about the swift-evolution
mailing list