> On Apr 5, 2017, at 12:16 PM, Ben Cohen <[email protected]> wrote:
> 
> 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.

Yes—I was asking about the transcoding primitives here. Currently the call 
looks like one of these:

        let (remainder, errorCount) = UTF8.parseForward(bytes, 
repairingIllFormedSequences: false) { … }
        let (remainder, errorCount) = UTF8.parseForward(bytes, 
repairingIllFormedSequences: true) { … }

I'm saying, would it be clearer if it looked like this instead?

        let (remainder, errorCount) = UTF8.parseForward(bytes, ifIllFormed: 
.stop) { … }
        let (remainder, errorCount) = UTF8.parseForward(bytes, ifIllFormed: 
.repair) { … }

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to