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

Introduce dump, rename Str to Txt, fixes namespace collision #3

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

alganet
Copy link
Owner

@alganet alganet commented Jul 6, 2024

coral's pseudodatastructures use global counters to keep track of stored values. These are namespaced into four variables, which were _S _L _S _A. Reusing _S for sets and strings is no longer supported, and now strings have their own namespace _T for Txt.

I also considered renaming val to var, then Str to Val, but that collides with some unstandard osh builtins, so we have to find another way. Txt sounds like a good compromise.

This commit also introduces the dump function, which recursively builds a serialization of any pseudodatastructure reference.

coral's pseudodatastructures use global counters to keep track of
stored values. These are namespaced into four variables, which
were _S _L _S _A. Reusing _S for sets and strings is no longer
supported, and now strings have their own namespace _T for Txt.

I also considered renaming `val` to `var`, then `Str` to `Val`, but
that collides with some unstandard osh builtins, so we have to find
another way. Txt sounds like a good compromise.

This commit also introduces the dump function, which recursively
builds a serialization of any pseudodatastructure reference.
@alganet alganet merged commit ce0614a into main Jul 6, 2024
1 check passed
@alganet alganet deleted the tlsa branch July 6, 2024 21:13
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