55b607ac30
The try(...) and can(...) functions are intended to make it more convenient to work with deep data structures of unknown shape, by allowing a caller to concisely try a complex traversal operation against a value without having to guard against each possible failure mode individually. These rely on the customdecode extension to get access to their argument expressions directly, rather than only the results of evaluating those expressions. The expressions can then be evaluated in a controlled manner so that any resulting errors can be recognized and suppressed as appropriate. |
||
---|---|---|
.. | ||
customdecode | ||
dynblock | ||
transform | ||
tryfunc | ||
typeexpr | ||
userfunc | ||
README.md |
HCL Extensions
This directory contains some packages implementing some extensions to HCL
that add features by building on the core API in the main hcl
package.
These serve as optional language extensions for use-cases that are limited only to specific callers. Generally these make the language more expressive at the expense of increased dynamic behavior that may be undesirable for applications that need to impose more rigid structure on configuration.