-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add proposal "Publication Helpers and Services" #131
Add proposal "Publication Helpers and Services" #131
Conversation
Explain the difference between helpers and services
This proposal was approved in today's meeting, I'll leave it opened a few more weeks before merging it, if anyone wants to chime in before. |
|
||
* `linksMatching(predicate: (Link) -> Boolean) -> Link?` | ||
* Finds all the links matching the given `predicate` in the publication's `readingOrder`, `resources`, and `links` properties (in order). | ||
* Delegates to `List<Link>::linksMatching()`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid providing List<Link>
extensions would not look completely natural, since it would not be clear whether alternate
links are checked or not (for me extending List
suggests not).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to rewrite these helpers after we have a working proof-of-concept implementation.
Our goal is to improve extensibility and customizability of the
Publication
type for reading apps. To achieve that, this proposal introduces two structured ways to extend aPublication
with additional features: helpers and services.See the formatted version here.