Should We Prefer Free Functions To Methods?
In C++, we are usually taught that if you have a choice between making a function a member of a class or a free function, then you should make it a free function.
Does this advice hold in rust?
In C++, we are usually taught that if you have a choice between making a function a member of a class or a free function, then you should make it a free function.
Does this advice hold in rust?