Skip to content

Provide the same set of arith impls as stdlib #7

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

Closed
wants to merge 1 commit into from
Closed

Conversation

matklad
Copy link
Member

@matklad matklad commented Mar 10, 2020

NB: We do not provide the transparent-ref impls like the stdlib does.

But is there specific reason to do this?

Also, are there any coherence implementations for using blanket impls for OpAssign / Sum, instead of just writing the two specific impls? Would it prevent downstream crates from adding some impls they otherwise would be able to add?

@matklad
Copy link
Member Author

matklad commented Mar 10, 2020

@CAD97 could you watch the repo so that I don't need to tag you explictelly on every PR? :)

@CAD97
Copy link
Contributor

CAD97 commented Mar 10, 2020

The reason is that I've got the code that does on my machine but haven't pushed it yet because you've been moving so fast :P

@matklad
Copy link
Member Author

matklad commented Mar 10, 2020

Ah, feel free to merge or to push your version :)

@CAD97
Copy link
Contributor

CAD97 commented Mar 11, 2020

... it looks like you pushed 8371915 to master which has the same set of changes as this PR 4d67ea9

@matklad
Copy link
Member Author

matklad commented Mar 12, 2020

it looks like you pushed

Ah, I usually setup origin to point to a fork, but not in this case. Let's close this then.

I don't know whether #8 or approach in master in better. I like #8 more, but stdlib uses brute force

@matklad matklad closed this Mar 12, 2020
bors bot added a commit that referenced this pull request Mar 13, 2020
8: Provide ref-transparent ops for TextSize r=matklad a=CAD97

Counter-proposal to #7. Basically the same set of impls, but set up slightly differently.

Co-authored-by: CAD97 <[email protected]>
@CAD97 CAD97 deleted the ops branch March 13, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants