Skip to content

Declarative signature specification for built-in functions #10373

@fricklerhandwerk

Description

@fricklerhandwerk

Problem statement

Currently, implementation of builtins procedurally checks validity of arguments, and interface documentation has to be written manually.

Solution proposal

Create a data structure that represents language values and use that when registering primops; automatically generate interface documentation from that.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributor-experienceDeveloper experience for Nix contributorsdocumentationlanguageThe Nix expression language; parser, interpreter, primops, evaluation, etc
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions