3 ms·
> Ownership is not that hard. Borrowing is a bit harder but not that much more so. I guess this is a bit like Typescript then. Especially when it comes to gene
by eitland 4y ago
> Ownership is not that hard. Borrowing is a bit harder but not that much more so.
I guess this is a bit like Typescript then. Especially when it comes to generics, sometimes I need to sit down and think carefully about what datatype exactly is it that this method requires compared to what I have and how do I express it in a generic way.
Sometimes it ends up taking some time but the result is invariably that the code ends up easier to read, understand and modify.