Repository navigation
Automatically document builtin constants - #8330
Conversation
|
While I certainly agree we should have this systematically and automatically documented, I'm not sure if we should actually expose null, true, false and the hidden constants. In general, maybe it's better to leave things undocumented rather than having a non-informative one-liner until we have something sensible. If we wait until we collect information on all of them, the PR will become really large and possibly run into merge conflicts. |
|
@fricklerhandwerk you can replace the strings will I personally like the fact that even |
a5a4c5e to
3d05484
Compare
|
Exposing
|
|
Triaged in Nix team meeting 2023-05-19:
|
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
3d05484 to
ba7bd90
Compare
542ff91 to
323efdb
Compare
323efdb to
4ba15c2
Compare
46608c6 to
ec96c6e
Compare
1fdcf36 to
7ecb072
Compare
fricklerhandwerk
left a comment
There was a problem hiding this comment.
Sorry for stalling this. This PR is a huge improvement.
5fb31db to
27081d4
Compare
c812ebb to
99ee579
Compare
Any primop will do for this, so might as well use one that isn't impure. Co-authored-by: Robert Hensing <[email protected]>
b5aaf8d to
cca8b59
Compare
Co-authored-by: Robert Hensing <[email protected]>
This is done in roughly the same way builtin functions are documented. Also auto-link experimental features for primops, subsuming PR #8371. Co-authored-by: Eelco Dolstra <[email protected]> Co-authored-by: Robert Hensing <[email protected]> Co-authored-by: Valentin Gagarin <[email protected]>
7fa6140 to
22b278e
Compare
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
This is done in roughly the same way builtin functions are documented.
Also auto-link experimental features for primops, subsuming PR #8371.
Motivation
Keeping the documention with the code like this makes it much easier to ensure it stays up to date and in sync.
Context
Recent doc PRs alerted me to the fact that we didn't yet have this infrastructure.
I moved in the existing docs, and then wrote some rough placeholder sentences for the others.
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.shsrc/*/teststests/nixos/*Priorities
Add 👍 to pull requests you find important.