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

Quote operator #1474

Open
zimbatm opened this issue Jul 19, 2017 · 1 comment
Open

Quote operator #1474

zimbatm opened this issue Jul 19, 2017 · 1 comment
Assignees
Labels
feature Feature request or proposal language The Nix expression language; parser, interpreter, primops, evaluation, etc

Comments

@zimbatm
Copy link
Member

zimbatm commented Jul 19, 2017

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:

input = `id 123`;
output = `123`;

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

@stale
Copy link

stale bot commented Feb 15, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 15, 2021
@fricklerhandwerk fricklerhandwerk added the language The Nix expression language; parser, interpreter, primops, evaluation, etc label Sep 13, 2022
@stale stale bot removed the stale label Sep 13, 2022
@fricklerhandwerk fricklerhandwerk added the feature Feature request or proposal label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal language The Nix expression language; parser, interpreter, primops, evaluation, etc
Projects
None yet
Development

No branches or pull requests

5 participants