Skip to content

reduce windows API bindings in the standard library to the minimum required for the standard library's own abstractions to work #4426

Closed
@andrewrk

Description

@andrewrk

Accepted Decision


Windows has a huge API surface. This opens the question of, what is the purpose of std lib windows API bindings?

Is it...

  • 🗳️ minimal surface area for the std lib's own abstractions to work, with the idea of eventually being supplemented by a third party package for users who want more comprehensive API coverage?
  • 🗳️ a complete, up-to-date, maintained set of all Windows API functions, for some approved set of DLLs?
  • 🗳️ some subset across DLLs that "feels right" for a standard library to have, with opinions on which functions should or should not be called (e.g. 'A' functions, see switch to using 'W' versions of windows functions instead of 'A' #534)?

In this proposal I am advocating for (1). I also think that (2) would be reasonable. I agree with @LemonBoy here that (3) is not reasonable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis proposal is planned.breakingImplementing this issue could cause existing code to no longer compile or have different behavior.os-windowsproposalThis 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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions