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

Make channel APIs polymorphic #73

Closed
squaremo opened this issue Jun 11, 2014 · 0 comments
Closed

Make channel APIs polymorphic #73

squaremo opened this issue Jun 11, 2014 · 0 comments

Comments

@squaremo
Copy link
Collaborator

The two channel APIs have a few methods for which proper polymorphism would be convenient, e.g., for missing out the options argument in favour of the callback.

Dispatching on the types seems like a reasonable way to do this, since the callback is usually a function. Maybe a tiny multiple dispatch module? It doesn't need to be very clever, just to make a wee state machine for each method.

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

No branches or pull requests

2 participants