Skip to content

Prepare Flags for Overhaul#38

Open
matttproud wants to merge 2 commits into
sladeware:masterfrom
arbeitspferde:refactor/simplify-flag-repr
Open

Prepare Flags for Overhaul#38
matttproud wants to merge 2 commits into
sladeware:masterfrom
arbeitspferde:refactor/simplify-flag-repr

Conversation

@matttproud
Copy link
Copy Markdown
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