Alternate Solution 1 looks cleaner while Alternate solution 2 is easier to handle.
For version 1, we could stick to Alternate Solution 2 and select a key that specifies values.
In the above example, the key is called : "value".
It could be called : "existing variable" for better understanding.
The compiler would then need to look for "existing values" key recursively to end up with the final value of a variable.
Issue with YAML
Alternate solution 1
Alternate solution 2
Alternate Solution 1 looks cleaner while Alternate solution 2 is easier to handle.
For version 1, we could stick to Alternate Solution 2 and select a key that specifies values. In the above example, the key is called : "value". It could be called : "existing variable" for better understanding.
The compiler would then need to look for "existing values" key recursively to end up with the final value of a variable.