This repository was archived by the owner on Feb 14, 2022. It is now read-only.
Modular settings in v4 #154
JacopoWolf
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I was planning for v4 development and tough that the settings object is kind of a mess to work with.
A couldron with random methods you have to know of to use. Although i made my best to made the methods extremely easy to use, I still think there is room for improvement.
My idea is to modularize the settings object, having multiple nested objects rapresetings a subset of options.
For example, a
StackWrapperSettings.Mask
to serve as a whitelist and blacklist manager, aStackWrapperSettings.Injection
to hold injeciton-related settings and so on.I believe the initialization only using static methods is in line with the design of the library, and i would like to expand on that.
The final design would look something like this:
This could also allow the injection of a custom class to validate injected classes before or after initialization.
Waiting for your feedback!
Beta Was this translation helpful? Give feedback.
All reactions