Skip to content

Consistent use of pointers #20

@bifurcation

Description

@bifurcation

Right now, our APIs use a mix of pointers and direct object references. We should be more uniform in our approach here. Suggested guidelines:

  • For structs representing messages (e.g., Welcome, Commit), fields are by value, except when optional
  • For other structs (e.g., State, HPKEPrivateKey), fields are as produced / passed to APIs, thus usually pointers
  • Fields in messages are by value, except when optional
  • Objects are passed to/from API methods by reference (as pointers)

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