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

Add outer constructors for "state" types #41

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

timholy
Copy link
Contributor

@timholy timholy commented Nov 30, 2020

When playing around at the REPL, it's nice to not need to specify
the type-parameter in state objects. This provides an outer constructor
that fills the parameters in from the arguments.

One missing case is SmartsParserState, but that seems to be a good case
for forcing the user to supply them directly.

When playing around at the REPL, it's nice to not need to specify
the type-parameter in state objects. This provides an outer constructor
that fills the parameters in from the arguments.

One missing case is SmartsParserState, but that seems to be a good case
for forcing the user to supply them directly.
Copy link
Owner

@mojaie mojaie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you very match!

@mojaie mojaie merged commit ffff50e into mojaie:master Nov 30, 2020
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.

2 participants