<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Apr 5, 2017, at 12:16 PM, Ben Cohen &lt;<a href="mailto:ben_cohen@apple.com" class="">ben_cohen@apple.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">The idea is, if you don’t want to make repairs, you use the transcoding primitives instead. The belief is that the old non-repairing versions (return nil if repairs needed) weren’t useful.</div></div></blockquote><br class=""></div><div>Yes—I was asking about the transcoding primitives here. Currently the call looks like one of these:</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>let (remainder, errorCount) =&nbsp;UTF8.parseForward(bytes, repairingIllFormedSequences: false) { … }</div><div><div><span class="Apple-tab-span" style="white-space: pre;">        </span>let (remainder, errorCount) = UTF8.parseForward(bytes, repairingIllFormedSequences: true) { … }</div><div class=""><br class=""></div><div class="">I'm saying, would it be clearer if it looked like this instead?</div><div class=""><br class=""></div><div class=""><div><span class="Apple-tab-span" style="white-space: pre;">        </span>let (remainder, errorCount) = UTF8.parseForward(bytes, ifIllFormed: .stop) { … }</div><div><div><span class="Apple-tab-span" style="white-space: pre;">        </span>let (remainder, errorCount) = UTF8.parseForward(bytes,&nbsp;ifIllFormed: .repair) { … }</div></div></div></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px;"><div class=""><div style="font-size: 12px; " class="">--&nbsp;</div><div style="font-size: 12px; " class="">Brent Royal-Gordon</div><div style="font-size: 12px; " class="">Architechies</div></div></span>

</div>
<br class=""></body></html>