[Nix-dev] confused using the <obj> ? <string> operator with non literal operators
Samuel
samuelrivas at gmail.com
Tue May 10 09:21:24 CEST 2016
> I never said it made sense ;-).
>
> But think of it as array access. It is the exact counterpart of the dot (.)
> operator :
>
> From that point of view it makes sense, right ?
Yes, that is a good explanation. I think I also found the dot operator
a bit surprising back in time, but doesn't seem it bothered me enough
to ask in the list :)
> Now its your turn: What section of the manual should be updated to better
> explain this ?
> You are at the best place to tell us how you looked for the info, and where
> you expected to find it.
I just read what it does in the Nix manual:
http://nixos.org/nix/manual/#table-operators
Neither . nor ? say anything about how the rhs is evaluated. Though
the manual does clarify what you just explained here
http://nixos.org/nix/manual/#idm46912467652128.
I am not sure wether it makes sense to reiterate that in the operators
section or if my confusion is just a fluke :)
Best
--
Samuel
More information about the nix-dev
mailing list