about summary refs log tree commit diff
path: root/tvix/proto
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-11T19·03+0300
committertazjin <tazjin@tvl.su>2022-08-26T15·06+0000
commit941d718a8a60ffb877f778e2feecf8c29ad79232 (patch)
tree10817dbb6ce8064d36cb1b0984dc838424567327 /tvix/proto
parentb8cec6d61e8cf30e12924dbbc6b24fecea310a17 (diff)
feat(tvix/compiler): implement `or` operator for attribute sets r/4500
This operator allows for accessing attribute sets (including nested
access) while also providing a default value.

This is one of the more complex operations to compile, as it needs to
keep track of a fairly large number of jumps that all need to be
patched correctly.

To make this easier to understand there's a small diagram included in
the comments.

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