-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
top-level: missing parentheses #21324
Conversation
@elitak, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Ericson2314 and @nbp to be potential reviewers. |
Sheesh sorry about that. I do wish @edolstra what would you think of e.g. |
@Ericson2314 should we merge this and then debate the language? |
@grahamc. Yes. I was going to say I miss my "or" being lined up. But without the lack of parents to make that elegant I shouldn't be so picky. |
Or is a very high-priority operator, but similar breaking changes are rather "hard to do" nowadays. |
@vcunat yeah then using a new previously keyword will solve the awkward overlap with indents and precedence problem in a backwards-compatable way. |
The indents are a non-issue here, if I understand what you meant. args.platform
or config.platform
or ((import ./platforms.nix).selectPlatformBySystem system) The problem addressed by this PR was that |
Sorry meant idents in that |
I can't see how adding an operator would affect the fact that |
My hope is special |
There is a |
I knew those, but they seem neither particularly useful nor much used. (Contrary to the "defaulting or" operator.) |
Motivation for this change
Without this change, when
config.platform
is set, the evaluator tries to apply it as a function tosystem
.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)