Skip to content

Reduce overused pointers and dereferences #37

@trietsch

Description

@trietsch

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?

  1. While mutating an element passed as a parameter to a function
  2. When you need to differentiate between nil and empty/default
  3. When handling large structs, it might be useful

I propose to simplify the source code, by removing pointers where possible.

Information references:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions