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

Introduce a behaviour for on_connect, on_request, and on_reply #32

Open
erszcz opened this issue Jul 31, 2014 · 0 comments
Open

Introduce a behaviour for on_connect, on_request, and on_reply #32

erszcz opened this issue Jul 31, 2014 · 0 comments

Comments

@erszcz
Copy link
Member

erszcz commented Jul 31, 2014

This comment applies just as well to our case of the callbacks in question. Introducing a behaviour will document the expected callback interface and might even make the code simpler.

We should probably use erlang:function_defined/3 to save the callback module implementer the hassle of reimplementing and exporting noop functions.

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