Open
Description
I think the deprecation messages for FromUnicodeScalarView
might reference an unimplemented conversion?
swift-parsing/Sources/Parsing/Internal/Deprecations.swift
Lines 808 to 850 in f949081
This compiles with the deprecation warning:
let foo: some Parser<Substring.UTF8View, Void> = FromUnicodeScalarView { // ⚠️ 'FromUnicodeScalarView' is deprecated: Use 'From(.unicodeScalars)' instead.
Peek {
Prefix(1, while: CharacterSet.alphanumerics.contains)
}
}
But the suggested replacement does not:
let bar: some Parser<Substring.UTF8View, Void> = From(.unicodeScalars) { // 🛑 Type 'Conversion' has no member 'unicodeScalars'
Peek {
Prefix(1, while: CharacterSet.alphanumerics.contains)
}
}
Would be happy to be told I'm holding it wrong! Feel free to close/convert to discussion if so. Thanks for the incredible library.
Metadata
Metadata
Assignees
Labels
No labels