Skip to content
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 occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renames ImmutableBuffer/TextBufferView to BinaryBuffer/TextBuffer #831

Merged
merged 11 commits into from
Sep 7, 2024

Conversation

zslayton
Copy link
Contributor

@zslayton zslayton commented Sep 6, 2024

There are no logic changes in this PR, only mechanical renaming. It builds on #830.

ImmutableBuffer got its name because it stood in contrast to the (now removed) IonReader that mutated its state each time you advanced the cursor. Now that it stands alone, I think BinaryBuffer is more descriptive.

Similarly, TextBufferView was named that to emphasize that operations returned a new 'view' of the same buffer. However, the name does suggest that there's another TextBuffer that this is a view into. TextBuffer is (subjectively) less confusing and pairs nicely with BinaryBuffer.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

* Adds support for `module_name::encoding_name::parameter` syntax
* Adds support for `(module_name::macro_name ...)` syntax

The only modules currently supported are `$ion` (the system module)
and `$ion_encoding` the active module.

This patch also starts uses `Rc` to store macro references in the body
of a compiled macro. This allows the macro to continue referring to
its dependent even if the dependent is no longer directly addressable.
Base automatically changed from qual-refs to main September 7, 2024 12:46
@zslayton zslayton merged commit 8709020 into main Sep 7, 2024
33 checks passed
@zslayton zslayton deleted the rename-buffers branch September 7, 2024 12:56
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.

2 participants