-
-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
treewide: deprecate isNull #219747
treewide: deprecate isNull #219747
Conversation
2222f4e
to
73acb52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why though? it's not hurting anyone?
@pennae it is mentioned here to be deprecated: https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull |
Then please write that in the commit message. |
73acb52
to
d10e69c
Compare
It may be arbitrarily “deprecated”, but that quite frankly doesn't really mean anything in the case of Nix. It's not like it's going to be removed. |
would you prefer having this split up into multiple PR? or is it not worth it? |
dunno. it just doesn't seem worth doing, to be honest? the review effort is so much higher than the benefits (which are entirely aesthetic) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I carefully looked at everything and did not notice anything that would change the code outcome. nixos-install-tools
is rebuild everytime lib changes even if the code is identical.
At least |
There's no good reason to deprecate it: - For consistency reasons it should continue to exist, such that all primitive types have a corresponding `builtins.is*` primop. - There's no implementation cost to continuing to have this function - It costs users time to try to migrate away from it, e.g. NixOS/nixpkgs#219747 and NixOS/nixpkgs#275548 - Using it can give easier-to-read code like `all isNull list`
There's no good reason to deprecate it: - For consistency reasons it should continue to exist, such that all primitive types have a corresponding `builtins.is*` primop. - There's no implementation cost to continuing to have this function - It costs users time to try to migrate away from it, e.g. NixOS/nixpkgs#219747 and NixOS/nixpkgs#275548 - Using it can give easier-to-read code like `all isNull list` Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Description of changes
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)