Skip to content

Conversation

@rjrjr
Copy link
Collaborator

@rjrjr rjrjr commented Sep 21, 2023

  • Deprecates the confusing bottom, rest: List constructor with an eye toward making it private
  • Adds fromList and fromListOrNull factory functions to BackStackScreen.Companion, since no one ever finds the List extensions

We'll preserve the bottom, rest: List constructor as the core one because it makes it impossible to build an invalid instance.

@rjrjr
Copy link
Collaborator Author

rjrjr commented Sep 21, 2023

Actually…let me update this to have a fundamental private constructor that just takes a list. It'll be more efficient and the public API will still prevent mistakes.

@rjrjr rjrjr force-pushed the ray/buildView-deprecation-tweak branch 3 times, most recently from 8d9522a to ba6caa1 Compare September 21, 2023 14:27
* Deprecates the confusing `bottom: T, rest: List` constructor
* Adds `fromList` and `fromListOrNull` factory functions to `BackStackScreen.Companion`, since no one ever finds the `List` extensions
@rjrjr rjrjr force-pushed the ray/buildView-deprecation-tweak branch from ba6caa1 to 5d385ce Compare September 21, 2023 14:29
@rjrjr rjrjr merged commit fb7001e into main Sep 21, 2023
@rjrjr rjrjr deleted the ray/buildView-deprecation-tweak branch September 21, 2023 15:56
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.

4 participants