-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Consider this case:
define:
$data1:
atom1: 12
atom2: 13
$data2:
items:
atom2
---
$data1,$data2.items
We get an error
Error: Subvariable value { items : atom2 } for not string or int in $data1.$data2.items
because this is being interpreted as `$data1,($data2).items.atom2
The workaround is to declare an intermediate variable:
define:
$data1:
atom1: 12
atom2: 13
$data2:
items:
atom2
---
define:
$inter: $data2.items
---
$data1.$inter
This enhancement is to add sub-expressions to make the evaluation order explicit such as
$data1.[$data2.items]
Thereby eliminating the intermediate variable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request