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

Improved support for defining custom JsString deriving type #1404

Merged
merged 1 commit into from Jan 14, 2023

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Jan 14, 2023

  • move ToBoolean as virtual method to JsValue

This PR opens possibility for uses cases like in RavenDB where they have a custom string type that can be expensive to materialize from encoded format. Now logic checks length before trying to do operations like equality, indexof or implicit logical boolean operators. Test case covers new features and materialization avoidance.

* move ToBoolean as virtual method to JsValue
@lahma lahma changed the title Add support for defining custom JsString deriving type Improved support for defining custom JsString deriving type Jan 14, 2023
@lahma lahma merged commit 6839807 into sebastienros:main Jan 14, 2023
@lahma lahma deleted the custom-strings branch January 14, 2023 09:04
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.

None yet

1 participant