[Nix-dev] Attribute selection with default

Marc Weber marco-oweber at gmx.de
Thu Sep 24 17:59:12 CEST 2009


If we'd like to see a ? but can't use it and if we don't want to use a
"or" because it looks like there should be a "and" as well what about
combining both?

a.(b.c ?| "default" )

This is a mixture of ? and "or" = |
Or maybe ?= (following the conditional gnumake operator)

or what about bash like syntax?
 a.(b.c :- "default" )?

So if "or" is bad  - don't think it is that bad.. You have to learn the
nix language anyway.. ?= could be an alternative.

Marc Weber



More information about the nix-dev mailing list