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

Think about reconceiving boot as a (LiftRules)=>LiftRules function #1892

Open
Shadowfiend opened this issue Aug 5, 2017 · 1 comment
Open

Comments

@Shadowfiend
Copy link
Member

More thoughts in this ML thread.

Basic idea is that boot goes from being a no-arg function that does mutable setup, to being a function that takes an immutable LiftRules parameter and updates its values to a final immutable LiftRules that is returned and then installed as the final rules state. State mutability would be captured in things like FactoryMakers in this conception, while most values would simply be immutable.

The transition here would be interesting, and this may push this into being something we should do for a hypothetical Lift 4, potentially.

@Shadowfiend Shadowfiend added this to the Hypothetical 4.0 milestone Aug 5, 2017
@Shadowfiend
Copy link
Member Author

Another interesting thought here would be breaking down the large number of LiftRules settings into separate immutable classes, which in turn can get their own boot functions. That also involves the discussion of whether it would be a net good to break out LiftRules into multiple sub-things, though, and there's never been a clear consensus one way or the other.

@farmdawgnation farmdawgnation added this to To do in Lift 4.0 Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Lift 4.0
  
To do
Development

No branches or pull requests

1 participant