-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
inconsistent and buggy behavior of argument sets with aliases #745
Comments
The state AFAIK:
I've been burned by some of these, but they don't seem inconsistent or buggy to me, perhaps just non-intuitive. It's arguably rather hard to change semantics at this point. Another of my personal examples: #629. |
After playing a little bit with it, I found that
I think, these rules make sense: If there's a name defined somewhere with a But we should really document them better in the manual, I haven't found these rules there. |
hmm. maybe these are ok. How about this one, though? Setting a defaulted value to the default value changes behavior
|
|
Perhaps it's good to view these as patterns that only create bindings, without changing or creating any values. |
Yeah, so I think
|
BTW, @edolstra: is it intentional that |
@vcunat No, I don't think so. |
I just noticed the wonky (and undocumented!) semantics of
will output The above is of course a reduced example from the real life situation where I was surprised by this, which looked a bit like this:
This blows up because nix tries to find somepackge in I’m aware that this would probably break a lot of nixpkgs, but I think it needs to be fixed nonetheless. |
There were discussions on this already IIRC (maybe years ago). The "lexical hint" argument actually goes against |
Closing this as there is nothing actionable. |
Add EditorConfig file and fix errors
I'm trying to figure out the semantics of aliases (@-bindings) and they look pretty broken. In particular, I expect
to always be equivalent to
but, it's not. here are some examples
The text was updated successfully, but these errors were encountered: