Skip to content
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

Guidelines on use of Borrow and Return #12

Open
chewxy opened this issue Sep 17, 2017 · 0 comments
Open

Guidelines on use of Borrow and Return #12

chewxy opened this issue Sep 17, 2017 · 0 comments

Comments

@chewxy
Copy link
Member

chewxy commented Sep 17, 2017

From @kabaka0 on March 22, 2017 14:50

For consistency, it would be good to have guidelines on when to use Borrow in contributed code. It would be great if Borrow/Return could be the default for allocation (including new types going forward)- it would make contributing to the code easier, as well as make it easier to manage performance. You could probably do this without too much of a performance hit, although the Borrow/Return functions would need to become a bit more complex to make sure that returns only correspond to borrowed objects. Thoughts on this?

Copied from original issue: gorgonia/gorgonia#100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant