-
Notifications
You must be signed in to change notification settings - Fork 396
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
Bit wise operations missing? #151
Comments
I would also like to see this, in other languages I haven't used these operations much, and knowing how they (could) behave on rust would be nice. |
Thanks for the feedback. My reasoning so far has been documenting "common operators one would know coming from another language" does not really explain anything to our target audience (experienced programmers, new to Rust) and just takes up space. That said, you have a point that there's value documenting their behavior w.r.t. Rust specifics. How about something like this:
PRs welcome. I think a quick mock would be good to get a feeling for much much wall-of-text that becomes if done with all operators; but as long as it looks good (TM) I can see this getting merged. |
Ah, i think documenting "rust operands are just invoked traits" with a table like that would be really useful onto itself, actually 👀 |
@doronbehar I was just looking at bitwise operators last night. @ralfbiedert What about using the Table B-1 from the rust book? |
I don't think that table fits as-is, I'd still start experimenting with some format mentioned above. |
On a related note, while I agree that it's reasonable to expect users to be familiar with the standard operators, it might be nice to at list them really compactly. For example, it's not too uncommon to use That is, I think there's value in saying "these are the Rust operators, you can probably guess what they do" rather than just "Rust probably has the operators that you might imagine exist". |
Yes good point. Right now the main thing that's missing is a good idea how to write and layout that table so it "blends in". I once tried the obvious
But that got tedious real fast. |
I'm a bit new to rust and I encountered the symbol
<<
which I wanted to know what does it mean and I didn't found it on the website. It'd be great if it was added in a proper location, with a link to here:https://doc.rust-lang.org/stable/std/ops/trait.Shr.html
Thanks a lot for maintaining this website.
The text was updated successfully, but these errors were encountered: