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

Semicolons are used without defining their use and meaning in the Nix language #21

Open
WayneSherman opened this issue Feb 2, 2024 · 0 comments

Comments

@WayneSherman
Copy link

Semicolons ";" are first used in the example here:

let attrs = { a = 15; b = builtins.throw "Oh no!"; };

But their syntactical use and meaning in the Nix language has not been defined.

I cannot confirm if this is completely accurate, but according to ChatGPT:
"In the Nix language, semicolons are used to terminate expressions within attribute sets, function arguments, and let bindings. They signify the end of one statement and the separation from the next, ensuring clear demarcation of different elements within these constructs."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant