Skip to content
This repository was archived by the owner on Nov 9, 2025. It is now read-only.

Conversation

@matklad
Copy link
Contributor

@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
Contributor 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
Contributor 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
Contributor 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants