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

Why are handlers named by what they will return? #12

Open
lf94 opened this issue Dec 25, 2020 · 1 comment
Open

Why are handlers named by what they will return? #12

lf94 opened this issue Dec 25, 2020 · 1 comment

Comments

@lf94
Copy link

lf94 commented Dec 25, 2020

If we are writing functions which are handling incoming T messages, why are using their R message names for the function names?

For example: When receiving a Tattach, why is rattach called instead of a "tattach" function, and returning Rattach message?

Maybe there is some good reason but I don't know :)

@lf94
Copy link
Author

lf94 commented Dec 26, 2020

Looking at how a few Plan 9 servers name their functions, we should use "fsmessagename" instead to keep to conventions. Considering rust-9p is 0.0.1, this change should be done sooner than later.

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