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

Prepare Flags for Overhaul #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matttproud
Copy link
Contributor

Two independent changes: Emit formatted flags as lists, and extract validation to its own domain type.

To better manage the overhaul of how the garbage collection strategy selection and such is handled, we need to simplify the flag representation even further. Without doing this, we make a bigger mess for ourselves. The simplifications allow us to start dropping the one-off treatment of argument formation in CommandLine and rely on JvmFlag for a naive search space. This is to say, if we want to support semantically incorrect search space generation, then we need to enable to code to do so easily.

@etheon, this will need some careful consideration.

The acceptable value representation code had been dead for ages.  The
validator behavior never belonged in the formatter, and the extraction
of it yields many nice future simplifications.
In forthcoming iterations, this aids in simplifying materialized
arguments by defining specific formatters inside of the JvmFlag
enum.  This also makes the "Tuny" prototyping easier.
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.

1 participant