about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2021-03-04T21·20+0100
committersterni <sternenseemann@systemli.org>2021-03-05T11·07+0000
commit5ae1d3fd7b363b6aab71b94626055ea91675f90d (patch)
treebcf85f25c9391fe27bfa3df9d4638dab3ee9b26e /docs
parentef40a8621fc4fdd6e197da52ab3f28b2b6e4c31d (diff)
feat(users/sterni/nix/flow): add switch conditional r/2269
switch would probably otherwise be called match, but has been renamed so
it isn't confused with string.match and the enum matching capabilities
yants has.

It implements the closest to pattern matching nix can come which is
still flexible enough to not be painful: Syntactically it works like
cond, but is given a value. Instead of booleans it checks passed
predicates or equality if simple values are passed. Both types of checks
can be mixed.

Change-Id: I40f000979cfd469316e15fd58d6c3a80312c1cc4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2589
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions