Add extra note for left, right and none functions in pratt.rs example#939
Conversation
|
What is the goal with this PR? |
|
I considered it to be a bit more user-friendly for |
|
Hmm, I'm not sure I necessarily agree with that assessment. The docs are quite clear as to what each function does. It's not that I have a strong opinion either way though. |
|
That's true. If you feel like this shouldn't be merged, I am not against it and I fully get it, but for me it was quite magic at first when I saw the example 😄 Maybe the example could mention something like: /// `left`, `right` and `none` are shorthand versions of `Associativity` variants
just before they are used, and the proposed change would be then restored back to the original? |
|
I'd be happy to accept that change, yes |
pratt.rs example with new infix API usage (Associativity)left, right and none functions in pratt.rs example
|
Thanks! |
No description provided.