Skip to content

Consider providing some typedefs or newtypes for system identifiers #221

@HadrienG2

Description

@HadrienG2

Heim exposes various system identifiers as primitive types like i32 or string slices. It would be a nice polish touch if those identifiers could be referred to via more explicit type names. I'm not sure whether the full awkwardness of newtypes would be worthwhile though, maybe a typedef would be enough.

For a motivating example, BTreeMap<SessionID, Vec<ProcessID>> decidedly reads more clearly than BTreeMap<i32, Vec<i32>>.

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