Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declarative signature specification for built-in functions #10373

Open
fricklerhandwerk opened this issue Mar 31, 2024 · 1 comment
Open

Declarative signature specification for built-in functions #10373

fricklerhandwerk opened this issue Mar 31, 2024 · 1 comment
Labels
contributor-experience Developer experience for Nix contributors documentation language The Nix expression language; parser, interpreter, primops, evaluation, etc

Comments

@fricklerhandwerk
Copy link
Contributor

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

@fricklerhandwerk fricklerhandwerk added language The Nix expression language; parser, interpreter, primops, evaluation, etc contributor-experience Developer experience for Nix contributors documentation labels Mar 31, 2024
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-06-05-nix-team-meeting-minutes-150/46583/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor-experience Developer experience for Nix contributors documentation language The Nix expression language; parser, interpreter, primops, evaluation, etc
Projects
None yet
Development

No branches or pull requests

2 participants