Implement switch
expression in expression language, not YAML
#90
Labels
enhancement
New feature or request
switch
expression in expression language, not YAML
#90
Computed fields are currently an embedded expression language within a YAML file.
switch
expressions (to work with unions and optional types) are not expressed in this language, but rather as YAML nodes:This does not allow switch expressions to be used as part of larger expressions (type conversions, a function call argument, etc).
Instead, we should consider making
switch
part of the expression language. The example above might then look like:On the other hand, this syntax introduces curly braces within a YAML document, where indentation is usually favoured.
The text was updated successfully, but these errors were encountered: