Replies: 3 comments
-
@clebergnu This will work and will be useful for a variants name is same as the variable name or variants with just one variable defined, which is true in this case. Only concern I have is the backward compatibility with this, if we are fine to float around both the representation for a while and let users naturally shift towards the new representation as an benefit, it will be good. Apart from the cleaner yaml and usability aspects, do you see any additional functional improvements, which will help to advertise and bring people on board. |
Beta Was this translation helpful? Give feedback.
-
@clebergnu Does this mean we support both ways of yaml representation ? architecture: !mux
arm:
arch: arm
x86_64:
arch: x86_64
powerpc:
arch: ppc64 So, does it mean we will support a combination of both formats, like below: architecture: !mux
arm: !value
x86_64: !value
powerpc:
arch: ppc64 |
Beta Was this translation helpful? Give feedback.
-
@clebergnu One additional point I want to clarify here is whether the datatype of the value can be preserved. Does it have any impact with the new format?
As others already discussed, backward compatibility may also provide answer to this as well. |
Beta Was this translation helpful? Give feedback.
-
The most common use case for the YAML to Mux files is to, of course, multiplex/multiply nodes under a node with a
!mux
tag.For instance:
Which generates variants such as:
It means that tests using these variants are able to do:
It's easy to see that there's a repetitive and inefficient pattern when creating nodes for multiplication purposes that also need to carry a simple value to be used as a parameter. A syntax such as the following could be an usability improvement:
The goal would be to have a variant like the following created:
Or, alternatively, if we decide to keep the current representation with keys always preceded by a
:name
, a variant like the following would be printed:The result is that a test using this structure would be able to do:
@harish-24 @sathnaga @richtja does this sound like something that would be useful? Can you spot any shortcomings?
Beta Was this translation helpful? Give feedback.
All reactions