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

constructor: add a create function #26

Merged
merged 1 commit into from
Apr 28, 2020
Merged

constructor: add a create function #26

merged 1 commit into from
Apr 28, 2020

Conversation

seliopou
Copy link
Member

The previous interface wasn't great in that required users to know that they should partially apply the dispatch function. Now, for both regular route description and the DSL route description, there's constructor to the same shared type t. With values of this type, users can now call a single dispatch function to get a handler for a path.

The previous interface wasn't great in that required users to know that
they should partially apply the dispatch function. Now, for both regular
route description and the DSL route description, there's constructor to
the same shared type t. With values of this type, users can now call a
single dispatch function to get a handler for a path.
@seliopou seliopou merged commit c09d71f into master Apr 28, 2020
@seliopou seliopou deleted the constructor branch April 28, 2020 03:08
This pull request was closed.
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