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

Extracts ScreenViewFactory.map from ScreenViewFactory.forWrapper #975

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

rjrjr
Copy link
Contributor

@rjrjr rjrjr commented Mar 21, 2023

Coupling Wrapper to ScreenViewFactory.forWrapper was a mistake, made simple transformations that weren't in the strict Wrapper shape more difficult.

Also some compulsive tidying of sample code.

Fixes #973

Coupling `Wrapper` to `ScreenViewFactory.forWrapper` was a mistake,
made simple transformations that weren't in the strict `Wrapper`
shape more difficult.

Also some compulsive tidying of sample code.

Fixes #973
@rjrjr rjrjr requested review from a team and zach-klippenstein as code owners March 21, 2023 20:44
@@ -26,6 +26,16 @@ public interface ScreenViewHolder<in ScreenT : Screen> {
* maintained correctly, and [showing] keeps working.
*/
public val runner: ScreenViewRunner<ScreenT>

public companion object {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Call sites aren't changed by this, it still looks like a constructor invocation of the ScreenViewHolder interface. Just seems more discoverable to me.

Copy link
Contributor

@steve-the-edwards steve-the-edwards left a comment

Choose a reason for hiding this comment

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

LGTM. I think I'm beginning to understand this a bit more. Certainly the terminology is getting easier for me to grok

@rjrjr
Copy link
Contributor Author

rjrjr commented Mar 21, 2023

Certainly the terminology is getting easier for me to grok

You and me both.

@rjrjr rjrjr merged commit 65040ca into main Mar 21, 2023
@rjrjr rjrjr deleted the ray/fromTransformer branch March 21, 2023 22:09
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.

Alias renderings are too hard to deal with
2 participants