-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Quote operator #1474
Copy link
Copy link
Open
Labels
featureFeature request or proposalFeature request or proposallanguageThe Nix expression language; parser, interpreter, primops, evaluation, etcThe Nix expression language; parser, interpreter, primops, evaluation, etc
Metadata
Metadata
Assignees
Labels
featureFeature request or proposalFeature request or proposallanguageThe Nix expression language; parser, interpreter, primops, evaluation, etcThe Nix expression language; parser, interpreter, primops, evaluation, etc
Fields
Give feedbackNo fields configured for issues without a type.
In cases where nix code is expressed but not to be evaluated, quoting (idea from lisp) could be useful. This would be a good way to embed code as metadata.
For example in NixOS/nixpkgs#27394 (comment) where code is used for the documentation, it could be described like this:
Where the backtick is the quoting mechanism.
It would mean that the editor could still do syntax highlighting, the parsing phase of the language could still validate the syntax, but the evaluation your be deferred.
What do you think @edolstra? Let me know if you want more examples or think it's worth a RFC.
Cheers.
z