Hi Nevin,
Thanks for taking the time to review the proposal!
> On Dec 20, 2017, at 7:08 PM, Nevin Brackett-Rozinsky via swift-evolution
> <swift-evolution@swift.org> wrote:
>
> Alternatively, since the “@abiPublic” attribute allows objects to be used by
> inlined code, why not spell it “@inlinable”?
>
Because both @abiPublic and @inlinable can be applied to functions, and we
really do need to distinguish the two cases — they’re definitely not the same:
private func pf() {}
@abiPublic func af() {
pf() // OK — we can reference a private function here
// framework author can change the body of af() and clients see the new body
}
@inlinable public func if() {
pf() // error!
af() // OK
// changes made here don’t necessarily get picked up by clients until
recompiled
}
Slava
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution