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

Cover refactor #3874

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Cover refactor #3874

wants to merge 13 commits into from

Conversation

YannickMG
Copy link
Contributor

The goal of this refactor is to make CoverBehavior an implementation detail, so that we may eventually fold all of the cover "class stack" into CoverInfo and it's future subclasses.

Even if we don't every call to CoverBehavior requires information that CoverInfo has.... Just call the method through CoverInfo instead.

This is a work in progress.

@YannickMG YannickMG added the refactor For PRs rewritting a part of the code to have a nicer code overall. label Feb 1, 2025
@Dream-Master Dream-Master requested a review from a team February 1, 2025 08:56
@YannickMG YannickMG removed the request for review from a team February 1, 2025 14:42
@YannickMG
Copy link
Contributor Author

This is a draft, I'll request a review when it's ready but comments are welcome of course.

The intent is to limit convoluted chained calls. If you want information about the cover, ask the CoverInfo. Usually you don't need the data, you want to call some other method on it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor For PRs rewritting a part of the code to have a nicer code overall.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant