Skip to content

return values don't follow the convention #2

Description

@oerdnj

I am not sure if it's not late to change this, but the common convention in the POSIX APIs are that 0 is return on success and non-zero value is returned on failure. This also has the advantage of possibly returning more different error conditions.

But as an early implementor, I found this reverse login in return values for unsigned int very confusing.

Activity

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

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