Skip to content

SWEEP: Removal of ICharSequence from most places, #1337 - #1387

Open
paulirwin wants to merge 10 commits into
apache:masterfrom
paulirwin:issue/1337
Open

SWEEP: Removal of ICharSequence from most places, #1337#1387
paulirwin wants to merge 10 commits into
apache:masterfrom
paulirwin:issue/1337

Conversation

@paulirwin

Copy link
Copy Markdown
Contributor
  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a change, please open an issue to discuss the change or find an existing issue.

Removal of ICharSequence from most places.

Fixes #1337

Description

ICharSequence is not necessary in the era of ReadOnlySpan<char>. This sweep removes most references to it, leaving only those for IAppendable support (falling back to a more-expensive ToString operation, to be removed in #1338) and in the query node types (that have custom implementations that should be done separately. Where possible, it was replaced with ReadOnlySpan. Some tests had to be adapted with AsSpan/Slice to mimic the prior behavior.

This is a breaking change because of the removal of overloads that can affect non-modern-.NET/C#14 users.

@paulirwin
paulirwin requested a review from NightOwl888 June 23, 2026 22:08
@paulirwin paulirwin added the notes:breaking-change Has changes that will break backward compatibility label Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:breaking-change Has changes that will break backward compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove ICharSequence from ICharTermAttribute and buffer types

1 participant