<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>It arose out of the original motivation to expose and maintain the existing methods. Users might find the `hadError` flag to be useful when code sequence repairs are enabled. It seems like that was the original intent, too, but everyone in the stdlib is throwing that away.<br></div>
<div> </div>
<div>Looking at it now, I don't think it's needed as public API. I'm in the midst of rebasing the branch onto master, so I'll play with it on there and update the proposal to fit.<br></div>
<div> </div>
<div>From an API surface area perspective, the legacy CString constructors need the full static (not necessarily public then, of course). In a perfect world, once those are gone, the static can get elided into the two initializers… which makes the case even more solid for not exporting it in this proposal.<br></div>
<div> </div>
<div id="sig40804545"><div class="signature">Cheers!<br></div>
<div class="signature"> Zachary Waldowski<br></div>
<div class="signature"> <a href="mailto:zach@waldowski.me">zach@waldowski.me</a><br></div>
</div>
<div> </div>
<div> </div>
<div>On Thu, Feb 11, 2016, at 09:15 PM, Tony Parker via swift-evolution wrote:<br></div>
<blockquote type="cite"><div>Hi Doug, Zachary,<br></div>
<div> </div>
<div>Can you provide more clarification on why the static func is needed? It seems like the functionality is all about initialization and therefore belongs in an initializer (as is also proposed).<br></div>
<div> </div>
<div>- Tony<br></div>
<div><div> </div>
<div><blockquote type="cite"><div>On Feb 11, 2016, at 4:41 PM, Douglas Gregor via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br></div>
<div> </div>
<div><div style="word-wrap:break-word;-webkit-line-break:after-white-space;"><p style="margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);">Hello Swift community,<br></p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);">The review of SE-0027 "Expose code unit initializers on String" begins now and runs through February 16, 2016. The proposal is available here:<br></p><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:16px;margin-left:0px;padding-top:0px;padding-right:15px;padding-bottom:0px;padding-left:15px;border-left-width:4px;border-left-style:solid;border-left-color:rgb(221, 221, 221);background-color:rgb(255, 255, 255);"><div style="margin-top:0px;margin-bottom:0px;"><span class="colour" style="color:rgb(119, 119, 119)"><span class="font" style="font-family:'Helvetica Neue', ' Helvetica', ' Segoe UI', ' Arial', ' freesans', ' sans-serif', ' Apple Color Emoji', ' Segoe UI Emoji', ' Segoe UI Symbol'"><span class="size" style="font-size:medium"><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0027-string-from-code-units.md">https://github.com/apple/swift-evolution/blob/master/proposals/0027-string-from-code-units.md</a></span></span></span><br></div>
</blockquote><p style="margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);">Reviews are an important part of the Swift evolution process. All reviews should be sent to the swift-evolution mailing list at<br></p><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:16px;margin-left:0px;padding-top:0px;padding-right:15px;padding-bottom:0px;padding-left:15px;color:rgb(119, 119, 119);border-left-width:4px;border-left-style:solid;border-left-color:rgb(221, 221, 221);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);"><div style="margin-top:0px;margin-bottom:0px;"><a style="background-color:transparent;color:rgb(64, 120, 192);text-decoration:none;" href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div>
</blockquote><p style="margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);">or, if you would like to keep your feedback private, directly to the review manager. When replying, please try to keep the proposal link at the top of the message:<br></p><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:16px;margin-left:0px;padding-top:0px;padding-right:15px;padding-bottom:0px;padding-left:15px;border-left-width:4px;border-left-style:solid;border-left-color:rgb(221, 221, 221);background-color:rgb(255, 255, 255);"><p style="color:rgb(119, 119, 119);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;margin-top:0px;margin-bottom:16px;">Proposal link:<br></p><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:16px;margin-left:0px;padding-top:0px;padding-right:15px;padding-bottom:0px;padding-left:15px;border-left-width:4px;border-left-style:solid;border-left-color:rgb(221, 221, 221);"><div style="margin-top:0px;margin-bottom:0px;"><span class="colour" style="color:rgb(119, 119, 119)"><span class="font" style="font-family:'Helvetica Neue', ' Helvetica', ' Segoe UI', ' Arial', ' freesans', ' sans-serif', ' Apple Color Emoji', ' Segoe UI Emoji', ' Segoe UI Symbol'"><span class="size" style="font-size:medium"><a href="https://github.com/apple/swift-evolution/blob/master/proposals/0027-string-from-code-units.md">https://github.com/apple/swift-evolution/blob/master/proposals/0027-string-from-code-units.md</a></span></span></span><br></div>
</blockquote><p style="color:rgb(119, 119, 119);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;margin-top:0px;margin-bottom:16px;">Reply text<br></p><blockquote style="color:rgb(119, 119, 119);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:15px;padding-bottom:0px;padding-left:15px;border-left-width:4px;border-left-style:solid;border-left-color:rgb(221, 221, 221);"><div style="margin-top:0px;margin-bottom:0px;">Other replies<br></div>
</blockquote></blockquote><h5 style="margin-top:1em;margin-bottom:16px;line-height:1.4;font-size:1em;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';background-color:rgb(255, 255, 255);"><a style="background-color:transparent;color:rgb(64, 120, 192);text-decoration:none;display:inline-block;padding-right:2px;line-height:1.1;" href="https://github.com/apple/swift-evolution#what-goes-into-a-review-1"></a>What goes into a review?<br></h5><p style="margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);">The goal of the review process is to improve the proposal under review through constructive criticism and, eventually, determine the direction of Swift. When writing your review, here are some questions you might want to answer in your review:<br></p><ul style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:2em;margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);"><li style="">What is your evaluation of the proposal?<br></li><li style="">Is the problem being addressed significant enough to warrant a change to Swift?<br></li><li style="">Does this proposal fit well with the feel and direction of Swift?<br></li><li style="">If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?<br></li><li style="">How much effort did you put into your review? A glance, a quick reading, or an in-depth study?<br></li></ul><p style="margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);">More information about the Swift evolution process is available at<br></p><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:16px;margin-left:0px;padding-top:0px;padding-right:15px;padding-bottom:0px;padding-left:15px;color:rgb(119, 119, 119);border-left-width:4px;border-left-style:solid;border-left-color:rgb(221, 221, 221);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);"><div style="margin-top:0px;margin-bottom:0px;"><a style="background-color:transparent;color:rgb(64, 120, 192);text-decoration:none;" href="https://github.com/apple/swift-evolution/blob/master/process.md">https://github.com/apple/swift-evolution/blob/master/process.md</a><br></div>
</blockquote><p style="margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);">Thank you,<br></p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);">Doug Gregor<br></p><p style="margin-top:0px;margin-bottom:16px;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);">Review Manager<br></p></div>
<div>_______________________________________________<br></div>
<div>swift-evolution mailing list<br></div>
<div><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br></div>
<div>https://lists.swift.org/mailman/listinfo/swift-evolution<br></div>
</div>
</blockquote></div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>swift-evolution mailing list<br></div>
<div><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br></div>
<div><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div>
</blockquote><div> </div>
</body>
</html>