Skip to content

Generalize OPTIONS behavior #137

@apstndb

Description

@apstndb

Currently, memefish fails unknown option key in some OPTIONS.
OPTIONS key can be added without notification, and it is even possible to have undocument options.

I think it is better to have "schema on read" semantics rather than "schema on write(parse)" semantics.
Validation should be the responsibility of semantic analysis phase.

Proposed characteristics

  • Any key-value pairs can be parsed and unparsed.
  • Known key-value can be accessed by named methods.
    • It can be error if invalid value type, and the error can be handled.
    • These are maintained on a best effort basis.
  • Concrete options share underlying implementation as GenericOptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions