-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
refactor: change Node pointers to values & return (Node, bool) #21
base: master
Are you sure you want to change the base?
refactor: change Node pointers to values & return (Node, bool) #21
Conversation
b4b762c
to
0e66c09
Compare
839edd6
to
f22ab79
Compare
any chance you have some time to look at this? @amaanq |
Sorry @topi314, I think after thinking about this for a bit, it makes total sense to have the node methods pass the object by value, since none of them besides Edit mutate the Node, and they're pretty small, stack-allocated objects - with that, I would think it'd be more natural if |
hey @amaanq, thanks for reconsidering on this matter. Yes I'd love to implement this and will try to do it in the next days. |
f22ab79
to
d7ee56b
Compare
d7ee56b
to
24f70e3
Compare
I think this should be all changes required for refactoring. I don't particularly like how I've written the tests, but this is prob the best we can do. |
This changes the method receivers of the
Node
type to values instead of pointers for non mutating methods & pointer return type as discussed in #19 (comment)