-
Notifications
You must be signed in to change notification settings - Fork 11
Survey surf #69
Comments
- Survey ownership in functions
<https://rust-lang.github.io/api-guidelines/flexibility.html#caller-decides-where-to-copy-and-place-data-c-caller-control>
I hate that this is the opposite of what I thought was sensible.
|
I suppose it makes sense if you want to avoid Edit: Not avoid clones, but make them explicit |
Actually you do avoid clones in some cases when you can move. Imagine eg. where let foo = Foo::new();
self.func(foo);
// I no longer need `foo` here, so I'm ok with `func` taking ownership. No cloning. If |
Sure, I meant in the case of you having |
There is a useful Rust API checklist. It would be great to see what applies to
radicle-surf
and list out the tasks that we could tackle on the checklist.I'd expect the output of this issue an issue that contains a checklist of the things to implement. Each item on the checklist could be a new issue once someone is willing to tackle it.
This could be a great source for contributions :)
The text was updated successfully, but these errors were encountered: