sudoblockio / tackle

Tackle is a programmable configuration language for building modular utilities, code generators, and CLIs with schema validation baked in.
Apache License 2.0
52 stars 2 forks source link

`match` hook with `block` + false `if` should set empty map #159

Open robcxyz opened 1 year ago

robcxyz commented 1 year ago

In a match hook, when there is a matched block with a false if condition, the return should be an empty map. Right now iin this example we don't set any key (ie matches_false does not exist.

matcher: block_true
# This should exist in output as empty key
matches_false:
  ->: match matcher
  case:
    # This key should not exist
    block_true->:
      if: false
      value: True

Results in

matcher: bock_true

Which should be empty or an error (ie the matched key does not exist).

matcher: 

Super edge case so low priority.