Skip to content

Switch to Function Decorators to Note Parsing Operations #84

Description

@WardLT

I was thinking about how we approach marking which functions in a parser are results or settings, and think we can use decorators instead of the current (complicated, hard-to-maintain) function based-approach.

The decorators would be similar to partial, in that they add some attributes to the functions that store the name of the property, units etc.

Then, we could write a general "get all result function" that introspects the parser object and gets all functions with the functions that have the special fields added by the decorator.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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