-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Send ident conflict #4
Comments
The way I solve this in the library is I use |
Maybe Sender/Receiver then, in line with channel terminology? |
To elaborate, from the perspective of people whose choice of tools start with Rust, when they pick up Par, I would imagine them to expect Par to not conflict with std types. There's a hierarchy, in a sense, where conflicts with a tool are the responsibility of the tool that depends on the first. The std is here first, even more so here because Send is part of the prelude. |
The hierarchy argument makes sense, and I'd be up for changing the names if a good alternative is found. Unfortunately, all alternatives I've seen or considered seemed worse than the |
I just hit a problem where I needed to use the std trait
Send
. A type alias does solve this, however I think this issue might be prevalent enough where it might be best to rename par's Send, and Recv to match.Some ideas:
Tx
/Rx
In
/Out
Give
/Recv
My preference would be on Tx/Rx, since those have the same meaning as Send/Recv, and Give is a bit passive.
The text was updated successfully, but these errors were encountered: