While adding new features to the CLI, I've noticed that we overuse pointers. We don't need this many pointers. When should we use pointers?
- While mutating an element passed as a parameter to a function
- When you need to differentiate between
nil and empty/default
- When handling large structs, it might be useful
I propose to simplify the source code, by removing pointers where possible.
Information references:
While adding new features to the CLI, I've noticed that we overuse pointers. We don't need this many pointers. When should we use pointers?
niland empty/defaultI propose to simplify the source code, by removing pointers where possible.
Information references: