[DONE] Why does DIDUrl::join
takes ownership of self
instead of borrowing it?
#805
Closed
arnauorriols
started this conversation in
Technical Discussion
Replies: 2 comments 1 reply
-
I could be wrong but I think the general reasoning was not to hide clones in functions, similar to why Personal opinion but given the behaviour of existing APIs you mentioned and the focus shift towards being more developer-friendly and easy-to-use, I would vote for changing |
Beta Was this translation helpful? Give feedback.
1 reply
-
Changed in PR #871, thanks for the suggestion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm referring to
DIDUrl::join
. If I'm not mistaken, the method does not need ownership of the instance, nor it is customary that "join" methods take it (as can be seen inPath::join
orSlice::join
). This forces client code to redundantly clone theDIDUrl
. Is it maybe a semantical reason?Beta Was this translation helpful? Give feedback.
All reactions