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

Weak links: add support for subdocuments and unbounded ranges #358

Open
Horusiath opened this issue Nov 18, 2023 · 0 comments
Open

Weak links: add support for subdocuments and unbounded ranges #358

Horusiath opened this issue Nov 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Horusiath
Copy link
Collaborator

Horusiath commented Nov 18, 2023

With weak links released as part of v0.17, this is a proposal for the future improvements.

First, in their current shape, Quotable::quote can only allow us to use bounded ranges on both ends. It would be nice if it could also work over unbounded ranges as well.

Second, one of the very useful attributes of weak links would be an ability to link data between document and subdocuments as well.

The major feature I'd love to see here is that subdocuments are not necessarily loaded at the beginning. They may be just small references waiting for being loaded when they will be necessary. This nicely corresponds with WeakRef::try_deref/WeakRef::unqote/WeakRef::get_string etc. methods as they are lazily evaluating linked value and give us explicit trigger that may be used to ie. tell the subdocument to load the data.

@Horusiath Horusiath added the enhancement New feature or request label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant