[swift-evolution] [Draft proposal] Faster/lower-level external String initialization

Max Moiseev moiseev at apple.com
Fri Jan 15 17:15:27 CST 2016


A quick note on usage of @available attribute in your code.

@available(*, deprecated, renamed="init(validatingCString:)”)

`renamed` provides a hint to XCode on how to actually rewrite the code in order for it to compile. It is quite unfortunate really that `renamed` accepts the syntax in a snippet above.
Please change `renamed` to `message`. Message will simply be displayed and expect some action from the developer.


> On Jan 14, 2016, at 6:02 PM, Zachary Waldowski via swift-evolution <swift-evolution at swift.org> wrote:
> In response to some recommendations from the Swift 3 plans, the proposed API has been made more comprehensive, and the proposal updated to fit.
> The proposal is now PR'ed:
>    https://github.com/apple/swift-evolution/pull/101
> The code is still where it was before:
>    https://github.com/apple/swift/compare/master...zwaldowski:string-from-code-units
> Sent from my iPhone
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160115/8b68020c/attachment.html>

More information about the swift-evolution mailing list