Skip to content

error.PermissionDenied vs error.AccessDenied #16782

Open
@squeek502

Description

These two error names are common through the Zig codebase, but they seem to be used pretty much interchangeably and don't seem to ever be used to convey unique information, so it seems like one canonical version should be chosen and used everywhere (or a distinction should be made about when to use one over another).

Some evidence for why I think it might make sense to merge them:

In terms of which is more common:

  • There are 50 instances of return error.PermissionDenied
  • There are 144 instances of return error.AccessDenied

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.standard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions