8000 js: Rename RawString to ImmutableString by alexjg · Pull Request #1031 · automerge/automerge · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

js: Rename RawString to ImmutableString #1031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasiona 8000 lly send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2025

Conversation

alexjg
Copy link
Collaborator
@alexjg alexjg commented May 9, 2025

Problem: RawString is an unhelpful name. A RawString is a string which is not collaborative, we don't create an op for each character in it but instead have a single op which sets the value of the whole string. It's useful when you expect to have a large string which will never be edited by a user (such as the output of a compilation step).

Solution: Rename RawString to ImmutableString, which better reflects why you might use it.

Problem: RawString is an unhelpful name. A RawString is a string which
is not collaborative, we don't create an op for each character in it but
instead have a single op which sets the value of the whole string. It's
useful when you expect to have a large string which will never be edited
by a user (such as the output of a compilation step).

Solution: Rename RawString to ImmutableString, which better reflects
why you might use it.
@alexjg alexjg merged commit 379f95e into main May 9, 2025
19 of 20 checks passed
@alexjg alexjg deleted the rename-rawstring-to-immutablestring branch May 9, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0