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

Define isomorphic string #635

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Define isomorphic string #635

merged 1 commit into from
Nov 14, 2024

Conversation

annevk
Copy link
Member

@annevk annevk commented Apr 15, 2024

And define it alongside ASCII and scalar value strings.


I think this will be useful for Cookies, but I need to think about it some more. But also in general we should probably be able to assert around isomorphic decode/encode?


Preview | Diff

And define it alongside ASCII and scalar value strings.
@annevk
Copy link
Member Author

annevk commented Nov 6, 2024

I looked at this again and given that it gives us a type we don't even need the assert anymore. I've implemented this inline where applicable. I think that definitely makes this a valuable addition.

@annevk annevk requested a review from domenic November 6, 2024 16:07
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I agree that in the context of already having "scalar value string", this is a win.

Be sure to update the commit message to also include ASCII string.

@annevk
Copy link
Member Author

annevk commented Nov 14, 2024

ASCII string is already defined. This just moves the definition as is noted in the commit message. Unless I misunderstood?

@domenic
Copy link
Member

domenic commented Nov 14, 2024

You're right, I just missed it.

@annevk annevk merged commit 8bc6202 into main Nov 14, 2024
2 checks passed
@annevk annevk deleted the annevk/isomorphic-string branch November 14, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants