For ExtCore 1.0, consider replacing the substring type in favor of the new ReadOnlySpan<char> type. substring is useful for avoiding allocations in text-processing code, but unfortunately there are some inconsistencies in it's implementation (and functions in the Substring module) w.r.t. whether indices used in functions represent an index into the original string or within the substring. Moving to ReadOnlySpan<char> gives us a chance to fix this, and also provides an API that'll be more compatible with the rest of F# and the broader .NET ecosystem.
For ExtCore 1.0, consider replacing the
substring
type in favor of the newReadOnlySpan<char>
type.substring
is useful for avoiding allocations in text-processing code, but unfortunately there are some inconsistencies in it's implementation (and functions in theSubstring
module) w.r.t. whether indices used in functions represent an index into the original string or within the substring. Moving toReadOnlySpan<char>
gives us a chance to fix this, and also provides an API that'll be more compatible with the rest of F# and the broader .NET ecosystem.