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

Switch to Function Decorators to Note Parsing Operations #84

Open
WardLT opened this issue Mar 26, 2019 · 0 comments
Open

Switch to Function Decorators to Note Parsing Operations #84

WardLT opened this issue Mar 26, 2019 · 0 comments

Comments

@WardLT
Copy link
Contributor

WardLT commented Mar 26, 2019

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.

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

No branches or pull requests

1 participant